net/core: Add VF link state control
authorRony Efraim <ronye@mellanox.com>
Thu, 13 Jun 2013 10:19:10 +0000 (13:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2013 00:51:04 +0000 (17:51 -0700)
commit1d8faf48c74b8329a0322dc4b2a2030ae5003c86
tree63471c7ee9379f70e30b27b82cf6f155683b4468
parent3dc6475c0c9e55ac7f053ad6b8b398e779954545
net/core: Add VF link state control

Add netlink directives and ndo entry to allow for controling
VF link, which can be in one of three states:

Auto - VF link state reflects the PF link state (default)

Up - VF link state is up, traffic from VF to VF works even if
the actual PF link is down

Down - VF link state is down, no traffic from/to this VF, can be of
use while configuring the VF

Signed-off-by: Rony Efraim <ronye@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_link.h
include/linux/netdevice.h
include/uapi/linux/if_link.h
net/core/rtnetlink.c