diff options
Diffstat (limited to 'datapath/linux/compat/include/linux/netdevice.h')
-rw-r--r-- | datapath/linux/compat/include/linux/netdevice.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/datapath/linux/compat/include/linux/netdevice.h b/datapath/linux/compat/include/linux/netdevice.h index cf68ed523..126ff23cf 100644 --- a/datapath/linux/compat/include/linux/netdevice.h +++ b/datapath/linux/compat/include/linux/netdevice.h @@ -323,4 +323,14 @@ static inline void netif_keep_dst(struct net_device *dev) } #endif +#ifndef HAVE_DEV_CHANGE_FLAGS_TAKES_EXTACK +static inline int rpl_dev_change_flags(struct net_device *dev, + unsigned int flags, + struct netlink_ext_ack *extack) +{ + return dev_change_flags(dev, flags); +} +#define dev_change_flags rpl_dev_change_flags +#endif + #endif /* __LINUX_NETDEVICE_WRAPPER_H */ |