]> git.baikalelectronics.ru Git - kernel.git/commit
net: dev: add generic protodown handler
authorAndy Roulin <aroulin@cumulusnetworks.com>
Fri, 22 Feb 2019 18:06:36 +0000 (18:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 21:01:04 +0000 (13:01 -0800)
commit54290ec5610b7afa65965bb0cb34142e78d5f67d
tree92d774fa39380da66ce4d88f93ec9dfb36c361ff
parent83e668cbf90854b46f726eeb3271881658d3178b
net: dev: add generic protodown handler

Introduce dev_change_proto_down_generic, a generic ndo_change_proto_down
implementation, which sets the netdev carrier state according to proto_down.

This adds the ability to set protodown on vxlan and macvlan devices in a
generic way for use by control protocols like VRRPD.

Signed-off-by: Andy Roulin <aroulin@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c