i40e: clear __I40E_VIRTCHNL_OP_PENDING on invalid min Tx rate
authorStefan Assmann <sassmann@kpanic.de>
Tue, 3 Sep 2019 06:08:10 +0000 (08:08 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Sep 2019 16:10:46 +0000 (09:10 -0700)
commit8ad2e298294766930e34677ee51b159da31e3898
treef01c0c52bc1e3703f3fcbb40e8ee25b220b8eb0d
parent846fcc7841de6418109d7ae06e75c01a43ee8a03
i40e: clear __I40E_VIRTCHNL_OP_PENDING on invalid min Tx rate

In the case of an invalid min Tx rate being requested
i40e_ndo_set_vf_bw() immediately returns -EINVAL instead of releasing
__I40E_VIRTCHNL_OP_PENDING first.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c