]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: lan9303: calculate offload_fwd_mark from tag
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Mon, 13 Nov 2017 13:25:25 +0000 (14:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 12:47:48 +0000 (21:47 +0900)
commit1a48fbd9ec1483f5bf3da63dfd907f4272828b4a
tree91fcdda5b562ab89b05746e407407fe935861171
parent887c3820a3801a117a494aeca147ec52f95e1566
net: dsa: lan9303: calculate offload_fwd_mark from tag

The lan9303 set bits in the host CPU tag indicating if a ingress frame
is a trapped IGMP or STP frame. Use these bits to calculate
skb->offload_fwd_mark more efficiently.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_lan9303.c