DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH dpdk-dev] net/mlx5: allow to match TTL option
@ 2019-11-19 11:33 xiangxia.m.yue
  0 siblings, 0 replies; only message in thread
From: xiangxia.m.yue @ 2019-11-19 11:33 UTC (permalink / raw)
  To: matan, shahafs, viacheslavo; +Cc: dev, Tonghao Zhang

From: Tonghao Zhang <xiangxia.m.yue@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@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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-19 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19 11:33 [dpdk-dev] [PATCH dpdk-dev] net/mlx5: allow to match TTL option xiangxia.m.yue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).