]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitb58996795dc4921123ada213f9f10b8317d3f34f
tree92d774fa39380da66ce4d88f93ec9dfb36c361ff
parent45c0e7b25ab21b8217ae63d1d31850a40e415f57
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