diff options
author | Xiaoyu Min <jackmin@mellanox.com> | 2019-07-03 15:22:49 +0800 |
---|---|---|
committer | Ferruh Yigit <ferruh.yigit@intel.com> | 2019-07-08 21:26:52 +0200 |
commit | d53aa89aea9135c41de42e737c25b8cecbcaa944 (patch) | |
tree | d8fceae29a4d632de334ef8191dfe9da9c9883f1 /doc/guides/nics/mlx5.rst | |
parent | bf1d7d9a033aa2aa71457625ebb8b3fbdc93289d (diff) | |
download | dpdk-d53aa89aea9135c41de42e737c25b8cecbcaa944.zip dpdk-d53aa89aea9135c41de42e737c25b8cecbcaa944.tar.gz dpdk-d53aa89aea9135c41de42e737c25b8cecbcaa944.tar.xz |
net/mlx5: support matching on ICMP/ICMP6
On DV/DR flow engine, MLX5 can match on ICMP/ICMP6's code and type field
via FLEX Parser, which can be enabled by config FW using FLEX Parser
profile 2:
mlxconfig -d <mst device> -y set FLEX_PARSER_PROFILE_ENABLE=2
The testpmd commands could be:
testpmd> flow create 0 ingress pattern eth / ipv4 /
icmp type is 8 code is 0 / end
actions rss queues 0 1 end / end
testpmd> flow create 0 ingress pattern eth / ipv6 /
icmp6 type is 128 code is 0 / end
actions rss queues 0 1 end / end
Signed-off-by: Xiaoyu Min <jackmin@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'doc/guides/nics/mlx5.rst')
-rw-r--r-- | doc/guides/nics/mlx5.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 4cd6cf8..20cbba7 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -160,6 +160,8 @@ Limitations - can be applied to VF ports only. - must specify PF port action (packet redirection from VF to PF). +- ICMP/ICMP6 code/type matching cannot be supported togeter with IP-in-IP tunnel. + Statistics ---------- @@ -525,6 +527,19 @@ Firmware configuration IP_OVER_VXLAN_EN True(1) IP_OVER_VXLAN_PORT <udp dport> +- enable ICMP/ICMP6's code/type field matching + + .. code-block:: console + + mlxconfig -d <mst device> set FLEX_PARSER_PROFILE_ENABLE=2 + + Verify configurations are set: + + .. code-block:: console + + mlxconfig -d <mst device> query | grep FLEX_PARSER_PROFILE_ENABLE + FLEX_PARSER_PROFILE_ENABLE 2 + Prerequisites ------------- |