]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: provide correct API version to older VF drivers
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 4 Jun 2015 20:24:00 +0000 (16:24 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 Jul 2015 12:29:17 +0000 (05:29 -0700)
commit5138225f0e3f59daf7be452e91dc5d71542d5c14
tree231ee6c244c041e19608e1dae2fef164edf79c71
parent92a60709a50c52e4462c8cf2dc4bcbea0959984c
i40e: provide correct API version to older VF drivers

This driver fully supports VF drivers using both the 1.0 and 1.1
versions of the virtual channel API. However, VF drivers using
version 1.0 get upset if we provide them with a version other than
that, and refuse to play with us.

Correct this by checking the VFs API version at the time that we
store it off, and provide the correct version number back to the VF
so we can all get along.

Change-ID: I86dfe02e67b2bef336b4b49a1bb072f3e7229abc
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