diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 54c82b5df0ba54f2e676d0c9f5197057d3edde1a..98f65ed8f8b0a45e81a45ceec1a977fb810cc9c2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1865,8 +1865,12 @@ struct net_device { struct pcpu_vstats __percpu *vstats; }; +#if IS_ENABLED(CONFIG_GARP) struct garp_port __rcu *garp_port; +#endif +#if IS_ENABLED(CONFIG_MRP) struct mrp_port __rcu *mrp_port; +#endif struct device dev; const struct attribute_group *sysfs_groups[4];