[lunn:v5.18-rc4-stacked-bridges 2/2] net/bridge/br_input.c:45:12: error: 'struct sk_buff' has no member named 'offload_fwd_mark'

From: kernel test robot
Date: Wed May 04 2022 - 02:34:06 EST


tree: https://github.com/lunn/linux.git v5.18-rc4-stacked-bridges
head: eab6004bc4f6b012db3b6e1fac75f4911662baf5
commit: eab6004bc4f6b012db3b6e1fac75f4911662baf5 [2/2] net: bridge: Clear offload_fwd_mark when passing frame up bridge interface.
config: m68k-randconfig-r031-20220501 (https://download.01.org/0day-ci/archive/20220504/202205041457.Jo1Z7eif-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/lunn/linux/commit/eab6004bc4f6b012db3b6e1fac75f4911662baf5
git remote add lunn https://github.com/lunn/linux.git
git fetch --no-tags lunn v5.18-rc4-stacked-bridges
git checkout eab6004bc4f6b012db3b6e1fac75f4911662baf5
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash net/bridge/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

net/bridge/br_input.c: In function 'br_pass_frame_up':
>> net/bridge/br_input.c:45:12: error: 'struct sk_buff' has no member named 'offload_fwd_mark'
45 | skb->offload_fwd_mark = false;
| ^~


vim +45 net/bridge/br_input.c

32
33 static int br_pass_frame_up(struct sk_buff *skb)
34 {
35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev;
36 struct net_bridge *br = netdev_priv(brdev);
37 struct net_bridge_vlan_group *vg;
38
39 dev_sw_netstats_rx_add(brdev, skb->len);
40
41 vg = br_vlan_group_rcu(br);
42
43 /* Reset the offload_fwd_mark because there could be a stacked bridge
44 * above. */
> 45 skb->offload_fwd_mark = false;
46
47 /* Bridge is just like any other port. Make sure the
48 * packet is allowed except in promisc mode when someone
49 * may be running packet capture.
50 */
51 if (!(brdev->flags & IFF_PROMISC) &&
52 !br_allowed_egress(vg, skb)) {
53 kfree_skb(skb);
54 return NET_RX_DROP;
55 }
56
57 indev = skb->dev;
58 skb->dev = brdev;
59 skb = br_handle_vlan(br, NULL, vg, skb);
60 if (!skb)
61 return NET_RX_DROP;
62 /* update the multicast stats if the packet is IGMP/MLD */
63 br_multicast_count(br, NULL, skb, br_multicast_igmp_type(skb),
64 BR_MCAST_DIR_TX);
65
66 return NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_IN,
67 dev_net(indev), NULL, skb, indev, NULL,
68 br_netif_receive_skb);
69 }
70

--
0-DAY CI Kernel Test Service
https://01.org/lkp