[dpdk-dev] [PATCH dpdk-dev] net/mlx5: allow to match TTL option
xiangxia.m.yue at gmail.com
xiangxia.m.yue at gmail.com
Tue Nov 19 12:33:32 CET 2019
From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
For example, Open vSwitch may offload tunnel flows
to hardware and the tunnel TTL option is 64 and its
mask is 0xff as default. Allow to match IPv4 TTL option.
Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
---
drivers/net/mlx5/mlx5_flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index d677de817ded..b9bb3feefbc8 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -1523,6 +1523,7 @@ mlx5_flow_validate_item_ipv4(const struct rte_flow_item *item,
.src_addr = RTE_BE32(0xffffffff),
.dst_addr = RTE_BE32(0xffffffff),
.type_of_service = 0xff,
+ .time_to_live = 0xff,
.next_proto_id = 0xff,
},
};
--
2.23.0
More information about the dev
mailing list