net/mlx5e: Remove duplicate code for user flow
authorParav Pandit <parav@nvidia.com>
Sat, 1 Jul 2023 22:19:29 +0000 (01:19 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:30 +0000 (11:37 -0700)
Flow table and priority detection is same for IP user flows and other L4
flows. Hence, use same code for all these flow types.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c

index aac32e505c14fe0c5b451cf58e8dd4f42393ed6b..08eb186615c8acf7d8a1d140f5aa5bdcc3ae4211 100644 (file)
@@ -96,10 +96,6 @@ static struct mlx5e_ethtool_table *get_flow_table(struct mlx5e_priv *priv,
        case UDP_V4_FLOW:
        case TCP_V6_FLOW:
        case UDP_V6_FLOW:
-               max_tuples = ETHTOOL_NUM_L3_L4_FTS;
-               prio = MLX5E_ETHTOOL_L3_L4_PRIO + (max_tuples - num_tuples);
-               eth_ft = &ethtool->l3_l4_ft[prio];
-               break;
        case IP_USER_FLOW:
        case IPV6_USER_FLOW:
                max_tuples = ETHTOOL_NUM_L3_L4_FTS;