Thread (17 messages) flat view 17 messages, 4 authors, 2021-08-11

Re: [RFC PATCH net-next 2/4] net: dsa: create a helper which allocates space for EtherType DSA headers

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-08-10 09:22:20


On 8/9/2021 4:57 AM, Vladimir Oltean wrote:
Hide away the memmove used by DSA EtherType header taggers to shift the
MAC SA and DA to the left to make room for the header, after they've
called skb_push(). The call to skb_push() is still left explicit in
drivers, to be symmetric with dsa_strip_etype_header, and because not
all callers can be refactored to do it (for example, brcm_tag_xmit_ll
has common code for a pre-Ethernet DSA tag and an EtherType DSA tag).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help