diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2013-12-23 09:09:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-31 14:31:43 -0500 |
commit | 7ffdf726cfe0d188907bdbb0e7729fb35a69c219 (patch) | |
tree | ead297c29f54fbb91741822dd6df13dbc3193fd4 /include/linux/mlx4/cq.h | |
parent | 604d13c97f0d863e41da3f5835c62e3cf899962b (diff) |
net/mlx4_core: Add basic support for TCP/IP offloads under tunneling
Add the low-level device commands and definitions used for TCP/IP HW offloads
of tunneled/vxlan traffic which are supported by the ConnectX3-pro NIC.
This is done through the following elements:
- read tunneling device caps in QUERY_DEV_CAP
- add helper function to do SET_PORT for tunneling
- add DMFS VXLAN steering rule definitions
- add CQE and WQE checksum offload field definitions
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4/cq.h')
-rw-r--r-- | include/linux/mlx4/cq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/cq.h b/include/linux/mlx4/cq.h index 98fa492cf406..5dd0d70a0689 100644 --- a/include/linux/mlx4/cq.h +++ b/include/linux/mlx4/cq.h | |||
@@ -81,7 +81,12 @@ struct mlx4_ts_cqe { | |||
81 | } __packed; | 81 | } __packed; |
82 | 82 | ||
83 | enum { | 83 | enum { |
84 | MLX4_CQE_L2_TUNNEL_IPOK = 1 << 31, | ||
84 | MLX4_CQE_VLAN_PRESENT_MASK = 1 << 29, | 85 | MLX4_CQE_VLAN_PRESENT_MASK = 1 << 29, |
86 | MLX4_CQE_L2_TUNNEL = 1 << 27, | ||
87 | MLX4_CQE_L2_TUNNEL_CSUM = 1 << 26, | ||
88 | MLX4_CQE_L2_TUNNEL_IPV4 = 1 << 25, | ||
89 | |||
85 | MLX4_CQE_QPN_MASK = 0xffffff, | 90 | MLX4_CQE_QPN_MASK = 0xffffff, |
86 | }; | 91 | }; |
87 | 92 | ||