net_sch: mqprio: Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO
authorNogah Frankel <nogahf@mellanox.com>
Mon, 6 Nov 2017 06:23:42 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 03:23:38 +0000 (12:23 +0900)
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>
15 files changed:
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/sfc/falcon/tx.c
drivers/net/ethernet/sfc/tx.c
drivers/net/ethernet/ti/netcp_core.c
include/linux/netdevice.h
net/sched/sch_mqprio.c

index 3d53153..a74a8fb 100644 (file)
@@ -2206,7 +2206,7 @@ static int xgbe_setup_tc(struct net_device *netdev, enum tc_setup_type type,
        struct tc_mqprio_qopt *mqprio = type_data;
        u8 tc;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index 1216c1f..4c739d5 100644 (file)
@@ -4289,7 +4289,7 @@ int __bnx2x_setup_tc(struct net_device *dev, enum tc_setup_type type,
 {
        struct tc_mqprio_qopt *mqprio = type_data;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index 96416f5..e5472e5 100644 (file)
@@ -7388,7 +7388,7 @@ static int bnxt_setup_tc(struct net_device *dev, enum tc_setup_type type,
        switch (type) {
        case TC_SETUP_BLOCK:
                return bnxt_setup_tc_block(dev, type_data);
-       case TC_SETUP_MQPRIO: {
+       case TC_SETUP_QDISC_MQPRIO: {
                struct tc_mqprio_qopt *mqprio = type_data;
 
                mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index ebc55b6..784dbf5 100644 (file)
@@ -351,7 +351,7 @@ static int dpaa_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
        u8 num_tc;
        int i;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index 2a0af11..5941509 100644 (file)
@@ -1252,7 +1252,7 @@ out:
 static int hns3_nic_setup_tc(struct net_device *dev, enum tc_setup_type type,
                             void *type_data)
 {
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        return hns3_setup_tc(dev, type_data);
index 81e4425..adc62fb 100644 (file)
@@ -1389,7 +1389,7 @@ static int __fm10k_setup_tc(struct net_device *dev, enum tc_setup_type type,
 {
        struct tc_mqprio_qopt *mqprio = type_data;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index 05b94d8..17e6f64 100644 (file)
@@ -7550,7 +7550,7 @@ static int __i40e_setup_tc(struct net_device *netdev, enum tc_setup_type type,
                           void *type_data)
 {
        switch (type) {
-       case TC_SETUP_MQPRIO:
+       case TC_SETUP_QDISC_MQPRIO:
                return i40e_setup_tc(netdev, type_data);
        case TC_SETUP_BLOCK:
                return i40e_setup_tc_block(netdev, type_data);
index e5dcb25..6eaca83 100644 (file)
@@ -9431,7 +9431,7 @@ static int __ixgbe_setup_tc(struct net_device *dev, enum tc_setup_type type,
        switch (type) {
        case TC_SETUP_BLOCK:
                return ixgbe_setup_tc_block(dev, type_data);
-       case TC_SETUP_MQPRIO:
+       case TC_SETUP_QDISC_MQPRIO:
                return ixgbe_setup_tc_mqprio(dev, type_data);
        default:
                return -EOPNOTSUPP;
index 736a6cc..99051a2 100644 (file)
@@ -135,7 +135,7 @@ static int __mlx4_en_setup_tc(struct net_device *dev, enum tc_setup_type type,
 {
        struct tc_mqprio_qopt *mqprio = type_data;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        if (mqprio->num_tc && mqprio->num_tc != MLX4_EN_NUM_UP_HIGH)
index f877f2f..5d5d2e5 100644 (file)
@@ -3146,7 +3146,7 @@ int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type,
        case TC_SETUP_BLOCK:
                return mlx5e_setup_tc_block(dev, type_data);
 #endif
-       case TC_SETUP_MQPRIO:
+       case TC_SETUP_QDISC_MQPRIO:
                return mlx5e_setup_tc_mqprio(dev, type_data);
        default:
                return -EOPNOTSUPP;
index 6a75f41..1b978d6 100644 (file)
@@ -435,7 +435,7 @@ int ef4_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
        unsigned tc, num_tc;
        int rc;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        num_tc = mqprio->num_tc;
index 32bf1fe..ea27b8a 100644 (file)
@@ -663,7 +663,7 @@ int efx_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
        unsigned tc, num_tc;
        int rc;
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        num_tc = mqprio->num_tc;
index 437d362..15e2e30 100644 (file)
@@ -1887,7 +1887,7 @@ static int netcp_setup_tc(struct net_device *dev, enum tc_setup_type type,
        /* setup tc must be called under rtnl lock */
        ASSERT_RTNL();
 
-       if (type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_QDISC_MQPRIO)
                return -EOPNOTSUPP;
 
        mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
index 71968a2..703885a 100644 (file)
@@ -770,7 +770,7 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
                                       struct sk_buff *skb);
 
 enum tc_setup_type {
-       TC_SETUP_MQPRIO,
+       TC_SETUP_QDISC_MQPRIO,
        TC_SETUP_CLSU32,
        TC_SETUP_CLSFLOWER,
        TC_SETUP_CLSMATCHALL,
index 4d5ed45..b85885a 100644 (file)
@@ -50,7 +50,8 @@ static void mqprio_destroy(struct Qdisc *sch)
                switch (priv->mode) {
                case TC_MQPRIO_MODE_DCB:
                case TC_MQPRIO_MODE_CHANNEL:
-                       dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_MQPRIO,
+                       dev->netdev_ops->ndo_setup_tc(dev,
+                                                     TC_SETUP_QDISC_MQPRIO,
                                                      &mqprio);
                        break;
                default:
@@ -265,7 +266,7 @@ static int mqprio_init(struct Qdisc *sch, struct nlattr *opt)
                        return -EINVAL;
                }
                err = dev->netdev_ops->ndo_setup_tc(dev,
-                                                   TC_SETUP_MQPRIO,
+                                                   TC_SETUP_QDISC_MQPRIO,
                                                    &mqprio);
                if (err)
                        return err;