Re: [PATCH net-next 2/2] net: stmmac: add tc flower filter for EtherType matching

From
Kurt Kanzenbach <hidden>
Date
2021-12-10 09:37:25
Also in
netdev
Reply to
Ong Boon Leong, 2021-12-09
Hi BL,

On Thu Dec 09 2021, Ong Boon Leong wrote:
This patch adds basic support for EtherType RX frame steering for
LLDP and PTP using the hardware offload capabilities.
Maybe add an example here for users?

|tc filter add dev eno1 parent ffff: protocol 0x88f7 flower hw_tc 4
|tc filter add dev eno1 parent ffff: protocol 0x88cc flower hw_tc 4
Signed-off-by: Ong Boon Leong <redacted>
Something is not quite correct. The use of the etype variable generates
new warnings. For instance:

|drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:768:25: warning: restricted __be16 degrades to integer
|drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:768:25: warning: restricted __be16 degrades to integer
|drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:817:22: warning: restricted __be16 degrades to integer
|drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:817:22: warning: restricted __be16 degrades to integer

However, the steering works as expected. Thanks!

Thanks,
Kurt
Thread (15 messages) 15 messages, 7 authors, last reply 2021-12-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help