OSDN Git Service

net/mlx5: Expose IP-in-IP TX and RX capability bits
authorAya Levin <ayal@nvidia.com>
Fri, 20 Nov 2020 23:03:32 +0000 (15:03 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 27 Nov 2020 02:43:48 +0000 (18:43 -0800)
Expose FW indication that it supports stateless offloads for IP over IP
tunneled packets per direction. In some HW like ConnectX-4 IP-in-IP
support is not symmetric, it supports steering on the inner header but
it doesn't TX-Checksum and TSO. Add IP-in-IP capability per direction to
cover this case as well.

Note: only if both indications are turned on, the global
tunnel_stateless_ip_over_ip is on too.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/linux/mlx5/mlx5_ifc.h

index 3ace197..96888f9 100644 (file)
@@ -913,7 +913,10 @@ struct mlx5_ifc_per_protocol_networking_offload_caps_bits {
        u8         tunnel_stateless_ipv4_over_vxlan[0x1];
        u8         tunnel_stateless_ip_over_ip[0x1];
        u8         insert_trailer[0x1];
-       u8         reserved_at_2b[0x5];
+       u8         reserved_at_2b[0x1];
+       u8         tunnel_stateless_ip_over_ip_rx[0x1];
+       u8         tunnel_stateless_ip_over_ip_tx[0x1];
+       u8         reserved_at_2e[0x2];
        u8         max_vxlan_udp_ports[0x8];
        u8         reserved_at_38[0x6];
        u8         max_geneve_opt_len[0x1];