]> git.baikalelectronics.ru Git - kernel.git/commit
ice: write register with correct offset
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 9 Oct 2019 14:09:48 +0000 (07:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 7 Nov 2019 00:41:45 +0000 (16:41 -0800)
commit11b9dfe5d54baaaa44335ba09537a5df49f9f885
treee1bc6c2e0658849b1edb4af514a0ce39ebd204ff
parent8ab105d7c3372cfaec2e8f71a6bec7894acff888
ice: write register with correct offset

The VF_MBX_ARQLEN register array is per-PF, not global, so we should not
use the absolute VF ID as an index. Instead, use the per-PF VF ID.

This fixes an issue with VFs on PFs other than 0 not seeing reset.

Signed-off-by: Mitch Williams <mitch.a.williams@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