]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Do not check VF state in i40e_ndo_get_vf_config
authorLihong Yang <lihong.yang@intel.com>
Wed, 5 Jun 2019 19:45:15 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2019 23:53:25 +0000 (16:53 -0700)
commit5d13de9e8fc15ceb70fa870631619a1e304ff133
tree9be07f1931bdb7594594e5a5099197b6af9c1d0c
parenteefc319df2e7b78108cedaa7419f4234a57b0acd
i40e: Do not check VF state in i40e_ndo_get_vf_config

The VF configuration returned in i40e_ndo_get_vf_config is
already stored by the PF. There is no dependency on any
specific state of the VF to return the configuration.
Drop the check against I40E_VF_STATE_INIT since it is not
needed.

Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c