]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: support VF link state ndo
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 11 Feb 2014 08:27:49 +0000 (08:27 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 19 Mar 2014 20:46:39 +0000 (13:46 -0700)
commit506e8ca8905d30f231fd8f8186fc90bb309333c5
treec5700a2bef244ce299db363ec574e0415718f01c
parent9ada85f7ce28a5508be19879e03afc38af0a8d34
i40e: support VF link state ndo

This netdev op allows the PF driver to control the virtual link state of
the VF devices. This can be used to deny naughty VF drivers access to
the wire, or to allow VFs (regardless of temperament) to communicate
with each other over the device's internal switch even though external
link is down.

Add the actual ndo function, and modify vc_notify_link_state to check
the link status of each VF before sending a message in the case when
physical link changes state.

Change-ID: Ib5a6924da78c540789f21d26b5e8086d71c29384
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h