netif_is_bridge_port() was added in upstream Linux commit 28f9ee22bcdd ("vlan: Do not put vlan headers back on bridge and macvlan ports"). It is now used by the wireless subsystem. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/netdevice.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index a71ed590..edb0aaf3 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -380,4 +380,12 @@ static inline int backport_dev_open(struct net_device *dev, struct netlink_ext_a #define dev_open LINUX_BACKPORT(dev_open) #endif +#if LINUX_VERSION_IS_LESS(4,4,0) +#define netif_is_bridge_port LINUX_BACKPORT(netif_is_bridge_port) +static inline bool netif_is_bridge_port(const struct net_device *dev) +{ + return dev->priv_flags & IFF_BRIDGE_PORT; +} +#endif + #endif /* __BACKPORT_NETDEVICE_H */ -- 2.20.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in