OSDN Git Service

ice: Only disable VF state when freeing each VF resources
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Fri, 8 Nov 2019 14:23:22 +0000 (06:23 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Nov 2019 21:14:48 +0000 (13:14 -0800)
commit1f9639d2fb9188a59acafae9dea626391c442a8d
tree68c7fcde3dad007bba3e45827a09e8635018a4cd
parent949375de945f7042df2b6488228a1a2b36e69f35
ice: Only disable VF state when freeing each VF resources

It is wrong to set PF disable state flag for all VFs when freeing VF
resources - Instead, we should set VF disable state flag for each VF with
its resources being returned to the device. Right now, all VF opcodes,
mailbox communication to clear its resources as well fails - since we
already indicate that PF is in disable state, with all VFs not active. In
addition, we don't need to notify VF that PF is intending to reset it, if
it is already in disabled state.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@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