Thread (20 messages) 20 messages, 8 authors, 2024-01-05

Re: [PATCH net 1/1] net: stmmac: Prevent DSA tags from breaking COE

From: Linus Walleij <hidden>
Date: 2023-12-19 14:19:57
Also in: linux-arm-kernel, stable

On Tue, Dec 19, 2023 at 2:07 PM Maxime Chevallier
[off-list ref] wrote:
So it looks like an acceptable solution would be something along the
lines of what Linus is suggesting here :

https://lore.kernel.org/netdev/20231216-new-gemini-ethernet-regression-v2-2-64c269413dfa@linaro.org/ (local)

If so, maybe it's worth adding a new helper for that check ?
Yeah it's a bit annoying when skb->protocol is not == ethertype of buffer.

I can certainly add a helper such as skb_eth_raw_ethertype()
to <linux/if_ether.h> that will inspect the actual ethertype in
skb->data.

It's the most straight-forward approach.

We could also add something like bool custom_ethertype; to
struct sk_buff and set that to true if the tagger adds a custom
ethertype. But I don't know how the network developers feel about
that.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help