Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc4244c6 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jeff Kirsher
Browse files

i40e: flower: Fix return value for unsupported offload



When filter configuration is not supported, drivers should return
-EOPNOTSUPP so the core can react correctly.

Fixes: 2f4b411a ("i40e: Enable cloud filters via tc-flower")
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 458867b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -7371,7 +7371,7 @@ static int i40e_configure_clsflower(struct i40e_vsi *vsi,


	if (tc < 0) {
	if (tc < 0) {
		dev_err(&vsi->back->pdev->dev, "Invalid traffic class\n");
		dev_err(&vsi->back->pdev->dev, "Invalid traffic class\n");
		return -EINVAL;
		return -EOPNOTSUPP;
	}
	}


	if (test_bit(__I40E_RESET_RECOVERY_PENDING, pf->state) ||
	if (test_bit(__I40E_RESET_RECOVERY_PENDING, pf->state) ||