]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: add offload_fwd_mark support
authorScott Feldman <sfeldma@gmail.com>
Sun, 19 Jul 2015 01:24:51 +0000 (18:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 01:32:45 +0000 (18:32 -0700)
commit7d10bdc3d6f6ac8f87753e8dd0573f4a318c58e6
tree2bfa54af9a6872206126d91cd46aad311e04bd8b
parent864dc52bec99a0bc04b370acb0a119fc18a2d5e2
rocker: add offload_fwd_mark support

If device flags ingress packet as "fwd offload", mark the
skb->offlaod_fwd_mark using the ingress port's dev->offlaod_fwd_mark.  This
will be the hint to the kernel that this packet has already been forwarded
by device to egress ports matching skb->offlaod_fwd_mark.

For rocker, derive port dev->offlaod_fwd_mark based on device switch ID and
port ifindex.  If port is bridged, use the bridge ifindex rather than the
port ifindex.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
drivers/net/ethernet/rocker/rocker.h