]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-switch: mark skbs with offload_fwd_mark
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 22 Mar 2021 20:58:59 +0000 (22:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 23:37:45 +0000 (16:37 -0700)
commitf8e8e0cf5e30a70cb050f5b5c77dd41733d7d457
tree80267388883bef8c9d698c308855026d053eebaf
parent1bd00423c7e6b5f3d695f94f874dca576ffc31bc
dpaa2-switch: mark skbs with offload_fwd_mark

If a switch port is under a bridge, the offload_fwd_mark should be setup
before sending the skb towards the stack so that the bridge does not try
to flood the packet on the other switch ports.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c