Skip to content

Commit 575ed7d

Browse files
Nogah Frankeldavem330
authored andcommitted
net_sch: mqprio: Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO
Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO to match the new convention. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 602f3ba commit 575ed7d

File tree

15 files changed

+17
-16
lines changed

15 files changed

+17
-16
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,7 @@ static int xgbe_setup_tc(struct net_device *netdev, enum tc_setup_type type,
22062206
struct tc_mqprio_qopt *mqprio = type_data;
22072207
u8 tc;
22082208

2209-
if (type != TC_SETUP_MQPRIO)
2209+
if (type != TC_SETUP_QDISC_MQPRIO)
22102210
return -EOPNOTSUPP;
22112211

22122212
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;

drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4289,7 +4289,7 @@ int __bnx2x_setup_tc(struct net_device *dev, enum tc_setup_type type,
42894289
{
42904290
struct tc_mqprio_qopt *mqprio = type_data;
42914291

4292-
if (type != TC_SETUP_MQPRIO)
4292+
if (type != TC_SETUP_QDISC_MQPRIO)
42934293
return -EOPNOTSUPP;
42944294

42954295
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7388,7 +7388,7 @@ static int bnxt_setup_tc(struct net_device *dev, enum tc_setup_type type,
73887388
switch (type) {
73897389
case TC_SETUP_BLOCK:
73907390
return bnxt_setup_tc_block(dev, type_data);
7391-
case TC_SETUP_MQPRIO: {
7391+
case TC_SETUP_QDISC_MQPRIO: {
73927392
struct tc_mqprio_qopt *mqprio = type_data;
73937393

73947394
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;

drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static int dpaa_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
351351
u8 num_tc;
352352
int i;
353353

354-
if (type != TC_SETUP_MQPRIO)
354+
if (type != TC_SETUP_QDISC_MQPRIO)
355355
return -EOPNOTSUPP;
356356

357357
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;

drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ static int hns3_setup_tc(struct net_device *netdev, void *type_data)
12521252
static int hns3_nic_setup_tc(struct net_device *dev, enum tc_setup_type type,
12531253
void *type_data)
12541254
{
1255-
if (type != TC_SETUP_MQPRIO)
1255+
if (type != TC_SETUP_QDISC_MQPRIO)
12561256
return -EOPNOTSUPP;
12571257

12581258
return hns3_setup_tc(dev, type_data);

drivers/net/ethernet/intel/fm10k/fm10k_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static int __fm10k_setup_tc(struct net_device *dev, enum tc_setup_type type,
13891389
{
13901390
struct tc_mqprio_qopt *mqprio = type_data;
13911391

1392-
if (type != TC_SETUP_MQPRIO)
1392+
if (type != TC_SETUP_QDISC_MQPRIO)
13931393
return -EOPNOTSUPP;
13941394

13951395
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7550,7 +7550,7 @@ static int __i40e_setup_tc(struct net_device *netdev, enum tc_setup_type type,
75507550
void *type_data)
75517551
{
75527552
switch (type) {
7553-
case TC_SETUP_MQPRIO:
7553+
case TC_SETUP_QDISC_MQPRIO:
75547554
return i40e_setup_tc(netdev, type_data);
75557555
case TC_SETUP_BLOCK:
75567556
return i40e_setup_tc_block(netdev, type_data);

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9431,7 +9431,7 @@ static int __ixgbe_setup_tc(struct net_device *dev, enum tc_setup_type type,
94319431
switch (type) {
94329432
case TC_SETUP_BLOCK:
94339433
return ixgbe_setup_tc_block(dev, type_data);
9434-
case TC_SETUP_MQPRIO:
9434+
case TC_SETUP_QDISC_MQPRIO:
94359435
return ixgbe_setup_tc_mqprio(dev, type_data);
94369436
default:
94379437
return -EOPNOTSUPP;

drivers/net/ethernet/mellanox/mlx4/en_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int __mlx4_en_setup_tc(struct net_device *dev, enum tc_setup_type type,
135135
{
136136
struct tc_mqprio_qopt *mqprio = type_data;
137137

138-
if (type != TC_SETUP_MQPRIO)
138+
if (type != TC_SETUP_QDISC_MQPRIO)
139139
return -EOPNOTSUPP;
140140

141141
if (mqprio->num_tc && mqprio->num_tc != MLX4_EN_NUM_UP_HIGH)

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,7 @@ int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type,
31463146
case TC_SETUP_BLOCK:
31473147
return mlx5e_setup_tc_block(dev, type_data);
31483148
#endif
3149-
case TC_SETUP_MQPRIO:
3149+
case TC_SETUP_QDISC_MQPRIO:
31503150
return mlx5e_setup_tc_mqprio(dev, type_data);
31513151
default:
31523152
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)