mirror of https://github.com/torvalds/linux.git
dsa: tag_mxl862xx: set dsa_default_offload_fwd_mark()
The MxL862xx offloads bridge forwarding in hardware, so set dsa_default_offload_fwd_mark() to avoid duplicate forwarding of packets of (eg. flooded) frames arriving at the CPU port. Link-local frames are directly trapped to the CPU port only, so don't set dsa_default_offload_fwd_mark() on those. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/e1161c90894ddc519c57dc0224b3a0f6bfa1d2d6.1775049897.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f259e08494
commit
4250ff1640
|
|
@ -86,6 +86,9 @@ static struct sk_buff *mxl862_tag_rcv(struct sk_buff *skb,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (likely(!is_link_local_ether_addr(eth_hdr(skb)->h_dest)))
|
||||
dsa_default_offload_fwd_mark(skb);
|
||||
|
||||
/* remove the MxL862xx special tag between the MAC addresses and the
|
||||
* current ethertype field.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue