u8 tc;
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc_to_netdev->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
tc = tc_to_netdev->mqprio->num_tc;
struct tc_to_netdev *tc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
struct tc_to_netdev *ntc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
ntc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
int i;
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
num_tc = tc->mqprio->num_tc;
struct tc_to_netdev *tc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
return hns3_setup_tc(dev, tc->mqprio->num_tc);
}
struct tc_to_netdev *tc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
struct tc_to_netdev *tc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
struct tc_to_netdev *tc)
{
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
if (tc->mqprio->num_tc && tc->mqprio->num_tc != MLX4_EN_NUM_UP_HIGH)
return -EINVAL;
int rc;
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
num_tc = ntc->mqprio->num_tc;
int rc;
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
num_tc = ntc->mqprio->num_tc;
ASSERT_RTNL();
if (type != TC_SETUP_MQPRIO)
- return -EINVAL;
+ return -EOPNOTSUPP;
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
num_tc = tc->mqprio->num_tc;