]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: lan9303_rcv set skb->offload_fwd_mark
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Tue, 31 Oct 2017 14:48:02 +0000 (15:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 12:30:24 +0000 (21:30 +0900)
commit5d3d64069a032e3c7488f89cf15b4f97e8d270cb
treeb545bef2c57085b3566c09ee6b0a8d95f3abad9d
parente20d1e21447dc780e188bc2f93e106a399262ce7
net: dsa: lan9303: lan9303_rcv set skb->offload_fwd_mark

The chip flood broadcast and unknown multicast frames.
On receive set skb->offload_fwd_mark to prevent the SW from flooding to the
same ports.

One exception: Because the ALR is set up to forward STP BPDUs only to CPU,
the SW bridge should flood STP BPDUs if local STP is not enabled.
This is archived by not setting skb->offload_fwd_mark on STP BPDUs.

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