diff options
author | David S. Miller <davem@davemloft.net> | 2019-02-24 13:01:05 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-24 13:01:05 -0800 |
commit | fad4271bec382a7a985ba9c1b31c85611ec90708 (patch) | |
tree | a93e0b61558f9e539b3f5371ab571500b800019f /include | |
parent | 45c0e7b25ab21b8217ae63d1d31850a40e415f57 (diff) | |
parent | 8f1af75df3a7a670d125f31ede3cfea1f5c1a81b (diff) | |
download | lwn-fad4271bec382a7a985ba9c1b31c85611ec90708.tar.gz lwn-fad4271bec382a7a985ba9c1b31c85611ec90708.zip |
Merge branch 'net-protodown-support-for-macvlan-and-vxlan'
Andy Roulin says:
====================
net: protodown support for macvlan and vxlan
This patch series adds dev_change_proto_down_generic, a generic
implementation of ndo_change_proto_down, which sets the netdev carrier
state according to the new proto_down value.
This handler adds the ability to set protodown on macvlan and vxlan
interfaces in a generic way for use by control protocols like VRRPD.
Patch (1) introduces the handler in net/code/dev.c. Patch (2) and (3) add
support for change_proto_down in macvlan and vxlan drivers, respectively,
using the new function.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6997f62cb6a0..ffbddd03242b 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3673,6 +3673,7 @@ int dev_get_port_parent_id(struct net_device *dev, struct netdev_phys_item_id *ppid, bool recurse); bool netdev_port_same_parent_id(struct net_device *a, struct net_device *b); int dev_change_proto_down(struct net_device *dev, bool proto_down); +int dev_change_proto_down_generic(struct net_device *dev, bool proto_down); struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev, bool *again); struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev, struct netdev_queue *txq, int *ret); |