net/mlx5e: TC: Remove unused parameter from mlx5_tc_ct_add_no_trk_match()
authorSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 01:48:04 +0000 (18:48 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:37 +0000 (15:44 -0700)
priv is never used in this function

Fixes: 7e36feeb0467 ("net/mlx5e: CT: Don't offload tuple rewrites for established tuples")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

index 9a7bd681f8fe8a3f8b925c20b8a52311dc4a3155..fe78de54179ec011d72124b727e2120a53dbbaad 100644 (file)
@@ -1026,9 +1026,7 @@ out:
        return false;
 }
 
-int
-mlx5_tc_ct_add_no_trk_match(struct mlx5e_priv *priv,
-                           struct mlx5_flow_spec *spec)
+int mlx5_tc_ct_add_no_trk_match(struct mlx5_flow_spec *spec)
 {
        u32 ctstate = 0, ctstate_mask = 0;
 
index bab872b76a5a49c809183a70485f326feca5a409..6503b614337cae655e24070bc73bb72ef78acc64 100644 (file)
@@ -108,9 +108,7 @@ mlx5_tc_ct_match_add(struct mlx5_tc_ct_priv *priv,
                     struct flow_cls_offload *f,
                     struct mlx5_ct_attr *ct_attr,
                     struct netlink_ext_ack *extack);
-int
-mlx5_tc_ct_add_no_trk_match(struct mlx5e_priv *priv,
-                           struct mlx5_flow_spec *spec);
+int mlx5_tc_ct_add_no_trk_match(struct mlx5_flow_spec *spec);
 int
 mlx5_tc_ct_parse_action(struct mlx5_tc_ct_priv *priv,
                        struct mlx5_flow_attr *attr,
@@ -167,8 +165,7 @@ mlx5_tc_ct_match_add(struct mlx5_tc_ct_priv *priv,
 }
 
 static inline int
-mlx5_tc_ct_add_no_trk_match(struct mlx5e_priv *priv,
-                           struct mlx5_flow_spec *spec)
+mlx5_tc_ct_add_no_trk_match(struct mlx5_flow_spec *spec)
 {
        return 0;
 }
index 4084a293442d3976fb2e39af10e5e58546995f75..f815b0c60a6c26847735052bcc39b99e28ed1c51 100644 (file)
@@ -3233,7 +3233,7 @@ static bool modify_header_match_supported(struct mlx5e_priv *priv,
         *  we can't restore ct state
         */
        if (!ct_clear && modify_tuple &&
-           mlx5_tc_ct_add_no_trk_match(priv, spec)) {
+           mlx5_tc_ct_add_no_trk_match(spec)) {
                NL_SET_ERR_MSG_MOD(extack,
                                   "can't offload tuple modify header with ct matches");
                netdev_info(priv->netdev,