diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-07-23 23:49:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-24 21:48:26 +0100 |
commit | c5381154393d42e2edd77fc74f1493f9f93908cb (patch) | |
tree | 767789e67ad87271b76aef4e3ee59dbe3beb2000 /net/nfc | |
parent | facfbf4f0b5afbf2d9a4147ca57c84dce2c7b8e2 (diff) |
net: bridge: fix build when setting skb->offload_fwd_mark with CONFIG_NET_SWITCHDEV=n
Switchdev support can be disabled at compile time, and in that case,
struct sk_buff will not contain the offload_fwd_mark field.
To make the code in br_forward.c work in both cases, we do what is done
in other places and we create a helper function, with an empty shim
definition, that is implemented by the br_switchdev.o translation module.
This is always compiled if and only if CONFIG_NET_SWITCHDEV is y or m.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 472111920f1c ("net: bridge: switchdev: allow the TX data plane forwarding to be offloaded")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions