summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-08-07 04:15:18 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-07 12:42:35 -0400
commitade9b6588420b335851951702ab975c975b0c1b2 (patch)
treeeaf0235cbb4c69b5ce90f2d11583c10cb59926fd
parent2572ac53c46f58e500b9d8d0f99785666038c590 (diff)
net: sched: rename TC_SETUP_MATCHALL to TC_SETUP_CLSMATCHALL
In order to be aligned with the rest of the types, rename TC_SETUP_MATCHALL to TC_SETUP_CLSMATCHALL. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.c2
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--net/dsa/slave.c2
-rw-r--r--net/sched/cls_matchall.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index 155424266cbf..6438c38e7a68 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
@@ -1704,7 +1704,7 @@ static int mlxsw_sp_setup_tc(struct net_device *dev, enum tc_setup_type type,
1704 return -EOPNOTSUPP; 1704 return -EOPNOTSUPP;
1705 1705
1706 switch (type) { 1706 switch (type) {
1707 case TC_SETUP_MATCHALL: 1707 case TC_SETUP_CLSMATCHALL:
1708 switch (tc->cls_mall->command) { 1708 switch (tc->cls_mall->command) {
1709 case TC_CLSMATCHALL_REPLACE: 1709 case TC_CLSMATCHALL_REPLACE:
1710 return mlxsw_sp_port_add_cls_matchall(mlxsw_sp_port, 1710 return mlxsw_sp_port_add_cls_matchall(mlxsw_sp_port,
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e4238e540544..f8051a36f900 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -778,7 +778,7 @@ enum tc_setup_type {
778 TC_SETUP_MQPRIO, 778 TC_SETUP_MQPRIO,
779 TC_SETUP_CLSU32, 779 TC_SETUP_CLSU32,
780 TC_SETUP_CLSFLOWER, 780 TC_SETUP_CLSFLOWER,
781 TC_SETUP_MATCHALL, 781 TC_SETUP_CLSMATCHALL,
782 TC_SETUP_CLSBPF, 782 TC_SETUP_CLSBPF,
783}; 783};
784 784
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index b4b63c20ec80..453f6ddcd023 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -873,7 +873,7 @@ static int dsa_slave_setup_tc(struct net_device *dev, enum tc_setup_type type,
873 return -EOPNOTSUPP; 873 return -EOPNOTSUPP;
874 874
875 switch (type) { 875 switch (type) {
876 case TC_SETUP_MATCHALL: 876 case TC_SETUP_CLSMATCHALL:
877 switch (tc->cls_mall->command) { 877 switch (tc->cls_mall->command) {
878 case TC_CLSMATCHALL_REPLACE: 878 case TC_CLSMATCHALL_REPLACE:
879 return dsa_slave_add_cls_matchall(dev, protocol, 879 return dsa_slave_add_cls_matchall(dev, protocol,
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c
index 6ffe0b82ab83..a8853ada22f6 100644
--- a/net/sched/cls_matchall.c
+++ b/net/sched/cls_matchall.c
@@ -63,7 +63,7 @@ static int mall_replace_hw_filter(struct tcf_proto *tp,
63 offload.cls_mall->exts = &head->exts; 63 offload.cls_mall->exts = &head->exts;
64 offload.cls_mall->cookie = cookie; 64 offload.cls_mall->cookie = cookie;
65 65
66 err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_MATCHALL, 66 err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_CLSMATCHALL,
67 tp->q->handle, tp->chain->index, 67 tp->q->handle, tp->chain->index,
68 tp->protocol, &offload); 68 tp->protocol, &offload);
69 if (!err) 69 if (!err)
@@ -85,7 +85,7 @@ static void mall_destroy_hw_filter(struct tcf_proto *tp,
85 offload.cls_mall->exts = NULL; 85 offload.cls_mall->exts = NULL;
86 offload.cls_mall->cookie = cookie; 86 offload.cls_mall->cookie = cookie;
87 87
88 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_MATCHALL, tp->q->handle, 88 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_CLSMATCHALL, tp->q->handle,
89 tp->chain->index, tp->protocol, &offload); 89 tp->chain->index, tp->protocol, &offload);
90} 90}
91 91