]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: Rename 'offload_mr_fwd_mark' to 'offload_l3_fwd_mark'
authorIdo Schimmel <idosch@mellanox.com>
Tue, 4 Dec 2018 08:15:10 +0000 (08:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 16:36:36 +0000 (08:36 -0800)
commitf5eeab92d2c1364af842084a49dfe2de227925e2
tree8948b57767beddb8d75b1b743191cfbae141f8ad
parent95333c2d64945a25c560fe00c50a17782b272fe4
skbuff: Rename 'offload_mr_fwd_mark' to 'offload_l3_fwd_mark'

Commit d076c99bef42 ("skbuff: Add the offload_mr_fwd_mark field") added
the 'offload_mr_fwd_mark' field to indicate that a packet has already
undergone L3 multicast routing by a capable device. The field is used to
prevent the kernel from forwarding a packet through a netdev through
which the device has already forwarded the packet.

Currently, no unicast packet is routed by both the device and the
kernel, but this is about to change by subsequent patches and we need to
be able to mark such packets, so that they will no be forwarded twice.

Instead of adding yet another field to 'struct sk_buff', we can just
rename 'offload_mr_fwd_mark' to 'offload_l3_fwd_mark', as a packet
either has a multicast or a unicast destination IP.

While at it, add a comment about both 'offload_fwd_mark' and
'offload_l3_fwd_mark'.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/ipmr.c