]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: notify VFs of link state
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 7 Apr 2015 23:45:33 +0000 (19:45 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Apr 2015 00:34:59 +0000 (17:34 -0700)
commita2a03da6dc4f637236f32a1c952db1ddf2c2b54d
treedea06010ea0a22e8aeeebec33df1682ad0d25d06
parentdaa52a34b9e25437977065be12398536684a565c
i40e: notify VFs of link state

Gratuitously notify VFs of link state when they activate their queues.
In general, this is the last thing that a VF driver will do as it opens
its interface, so this is a good time to notify the VF.

Currently, VF devices assume link is up unless told otherwise, which
means that VFs instantiated on a PF with no link will report the wrong
state. This change corrects that issue.

Change-ID: Iea53622904ecc681ac3f8938d81c30033ef9a0a6
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c