[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YbNAtugLvd83zP2W@linutronix.de>
Date: Fri, 10 Dec 2021 12:57:42 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Kurt Kanzenbach <kurt.kanzenbach@...utronix.de>
Cc: Ong Boon Leong <boon.leong.ong@...el.com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...com>,
Jose Abreu <joabreu@...opsys.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
alexandre.torgue@...s.st.com, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH net-next 2/2] net: stmmac: add tc flower filter for
EtherType matching
On 2021-12-10 11:10:04 [+0100], Kurt Kanzenbach wrote:
> > + if (match.mask->n_proto) {
> > + __be16 etype = ntohs(match.key->n_proto);
>
> n_proto is be16. The ntohs() call will produce an u16.
While at it, could we be please remove that __force in
ETHER_TYPE_FULL_MASK and use cpu_to_be16() macro?
> Thanks,
> Kurt
Sebastian
Powered by blists - more mailing lists