path: root/drivers/net/mlx5/mlx5.h
diff options
authorMatan Azrad <>2019-07-29 11:53:28 +0000
committerFerruh Yigit <>2019-07-29 16:54:27 +0200
commit5158260917a0588052500af4e011b6cd77143c1c (patch)
tree0d7572129e37970cb8e6dd5b73d767c4f145e812 /drivers/net/mlx5/mlx5.h
parent2579543f604daf459bd8c939c52c6fc43b235f43 (diff)
net/mlx5: allow implicit LRO flow
When a user configures LRO in the port offloads, he probably wants each TCP packet will have a chance to open an LRO session. The PMD wasn't configure LRO in the flow TIR if the flow is not explicitly configured TCP item despite the flow included TCP traffic. For example, the next flows were not LRO offloaded: pattern eth / end, pattern eth / ip / end, pattern eth / ipv6 / end. Enable LRO configuration for all the TIRs if LRO is configured in the port. No performance impact for non-LRO traffic in these TIRs. Signed-off-by: Matan Azrad <> Acked-by: Viacheslav Ovsiienko <>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 6cb8858..5c40091 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -198,9 +198,6 @@ TAILQ_HEAD(mlx5_flows, rte_flow);
#define MLX5_LRO_ENABLED(dev) \
((dev)->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_TCP_LRO)
-#define MLX5_FLOW_IPV4_LRO (1 << 0)
-#define MLX5_FLOW_IPV6_LRO (1 << 1)
/* LRO configurations structure. */
struct mlx5_lro_config {
uint32_t supported:1; /* Whether LRO is supported. */