net/mlx5: allow to match TTL option
Checks
Commit Message
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(+)
@@ -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,
},
};