ice: fix an error code in ice_ena_vfs()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Oct 2021 08:00:12 +0000 (11:00 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 19 Oct 2021 17:53:28 +0000 (10:53 -0700)
commit8702ed0b0de146c980883896b4cbb40ce860142e
tree3e6ebe350cdbab2da1d1d40e0d0107190894559b
parent6f3323536aa8895b1e3fc6fe6762e7ddee916de1
ice: fix an error code in ice_ena_vfs()

Return the error code if ice_eswitch_configure() fails.  Don't return
success.

Fixes: 1c54c839935b ("ice: enable/disable switchdev when managing VFs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c