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

Commit 246ab6f0 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

cls_flower: fix error values for commands not supported by drivers



-EOPNOTSUPP is the error value that should be reported if a flower
command is not supported by a driver. Fix it in couple of Intel drivers.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eba7927b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7522,7 +7522,7 @@ static int i40e_setup_tc_cls_flower(struct i40e_netdev_priv *np,
	case TC_CLSFLOWER_STATS:
		return -EOPNOTSUPP;
	default:
		return -EINVAL;
		return -EOPNOTSUPP;
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -2884,7 +2884,7 @@ static int i40evf_setup_tc_cls_flower(struct i40evf_adapter *adapter,
	case TC_CLSFLOWER_STATS:
		return -EOPNOTSUPP;
	default:
		return -EINVAL;
		return -EOPNOTSUPP;
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -2698,7 +2698,7 @@ static int igb_setup_tc_cls_flower(struct igb_adapter *adapter,
	case TC_CLSFLOWER_STATS:
		return -EOPNOTSUPP;
	default:
		return -EINVAL;
		return -EOPNOTSUPP;
	}
}