mlxsw: spectrum: rename cls arg in matchall processing
authorJiri Pirko <jiri@mellanox.com>
Mon, 7 Aug 2017 08:15:25 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 16:42:36 +0000 (09:42 -0700)
To sync-up with the naming in the rest of the driver, rename the cls arg.

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index 9f8ba37fa7e31961ca751c32c1f12e2c2c59fa32..f333d086932db0cec3459e33c8b1ee7f08c3a137 100644 (file)
@@ -1618,7 +1618,7 @@ mlxsw_sp_port_del_cls_matchall_sample(struct mlxsw_sp_port *mlxsw_sp_port)
 
 static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
                                          __be16 protocol,
-                                         struct tc_cls_matchall_offload *cls,
+                                         struct tc_cls_matchall_offload *f,
                                          bool ingress)
 {
        struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry;
@@ -1626,7 +1626,7 @@ static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
        LIST_HEAD(actions);
        int err;
 
-       if (!tcf_exts_has_one_action(cls->exts)) {
+       if (!tcf_exts_has_one_action(f->exts)) {
                netdev_err(mlxsw_sp_port->dev, "only singular actions are supported\n");
                return -EOPNOTSUPP;
        }
@@ -1634,9 +1634,9 @@ static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
        mall_tc_entry = kzalloc(sizeof(*mall_tc_entry), GFP_KERNEL);
        if (!mall_tc_entry)
                return -ENOMEM;
-       mall_tc_entry->cookie = cls->cookie;
+       mall_tc_entry->cookie = f->cookie;
 
-       tcf_exts_to_list(cls->exts, &actions);
+       tcf_exts_to_list(f->exts, &actions);
        a = list_first_entry(&actions, struct tc_action, list);
 
        if (is_tcf_mirred_egress_mirror(a) && protocol == htons(ETH_P_ALL)) {
@@ -1648,7 +1648,7 @@ static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
                                                            mirror, a, ingress);
        } else if (is_tcf_sample(a) && protocol == htons(ETH_P_ALL)) {
                mall_tc_entry->type = MLXSW_SP_PORT_MALL_SAMPLE;
-               err = mlxsw_sp_port_add_cls_matchall_sample(mlxsw_sp_port, cls,
+               err = mlxsw_sp_port_add_cls_matchall_sample(mlxsw_sp_port, f,
                                                            a, ingress);
        } else {
                err = -EOPNOTSUPP;
@@ -1666,12 +1666,12 @@ err_add_action:
 }
 
 static void mlxsw_sp_port_del_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
-                                          struct tc_cls_matchall_offload *cls)
+                                          struct tc_cls_matchall_offload *f)
 {
        struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry;
 
        mall_tc_entry = mlxsw_sp_port_mall_tc_entry_find(mlxsw_sp_port,
-                                                        cls->cookie);
+                                                        f->cookie);
        if (!mall_tc_entry) {
                netdev_dbg(mlxsw_sp_port->dev, "tc entry not found on port\n");
                return;