]> git.baikalelectronics.ru Git - kernel.git/commit
ice: reject VF attempts to enable head writeback
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 29 Jul 2019 09:04:49 +0000 (02:04 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Aug 2019 17:09:45 +0000 (10:09 -0700)
commit8f0fc05f3e141a893c2cae2213f6c8ef00ec25f8
tree2621b07524fdf97c0e15471800376e0d61030b99
parentbdfc22ff4ec07f42f9bf89cc959d8c6554d487bc
ice: reject VF attempts to enable head writeback

The virtchnl interface provides a mechanism for a VF driver to request
head writeback support. This feature is deprecated as of AVF 1.0, but
older versions of a VF driver may still attempt to request the mode.

Since the ice hardware does not support head writeback, we should not
accept Tx queue configuration which attempts to enable it.

Currently, the driver simply assumes that the headwb_enabled bit will
never be set.

If a VF driver does request head writeback, the configuration will
return successfully, even though head writeback is not enabled. This
leaves the VF driver in a non functional state since it is assuming to
be operating in head writeback mode.

Fix the PF driver to reject any attempt to setup headwb_enabled.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c