]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: fix iov_msg_lport_state_pf issue
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jun 2015 23:31:12 +0000 (16:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Jun 2015 21:21:36 +0000 (14:21 -0700)
commit9a706f4812efbc5c4763e0b49cb8fdc63c83e18a
treeeac4ad799c65386d3b6ae1d58cadb937832ffaf2
parent58cdd8c4f9b6b7f9fb5a7a3eb0ea3db84842c24d
fm10k: fix iov_msg_lport_state_pf issue

When a VF issues an LPORT_STATE request to enable a port that is already
enabled, the PF will first disable the VF LPORT. Then it should
re-enable the VF again with the new requested settings. This ensures
that any switch rules are cleared by deleting the LPORT on the switch.
However, the flow is bugged because we actually check if the VF is
enabled at the end, and thus don't re-enable it. Fix the flow so that we
actually clear the enabled flags as part of our removal of the LPORT.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c