mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
net/mlx5e: Remove duplicate code for user flow
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>
This commit is contained in:
committed by
Saeed Mahameed
parent
b90ebfc018
commit
9ec85cc9c9
@@ -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 = ðtool->l3_l4_ft[prio];
|
||||
break;
|
||||
case IP_USER_FLOW:
|
||||
case IPV6_USER_FLOW:
|
||||
max_tuples = ETHTOOL_NUM_L3_L4_FTS;
|
||||
|
||||
Reference in New Issue
Block a user