diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2016-07-24 16:12:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-25 17:53:40 -0700 |
commit | ae76715d153e33c249b6850361e4d8d775388b5a (patch) | |
tree | 80a2979527df9f9d20f67385607434dc2009e48f /include/linux/mlx5/device.h | |
parent | 5fc382d87517707ad77ea4c9c12e2a3fde2c838a (diff) | |
download | linux-ae76715d153e33c249b6850361e4d8d775388b5a.tar.gz linux-ae76715d153e33c249b6850361e4d8d775388b5a.tar.bz2 linux-ae76715d153e33c249b6850361e4d8d775388b5a.zip |
net/mlx5e: Check the minimum inline header mode before xmit
Each send queue (SQ) has inline mode that defines the minimal required
inline headers in the SQ WQE.
Before sending each packet check that the minimum required headers
on the WQE are copied.
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r-- | include/linux/mlx5/device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index e0a3ed758287..0b6d15cddb2f 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -129,6 +129,13 @@ __mlx5_mask(typ, fld)) tmp; \ }) +enum mlx5_inline_modes { + MLX5_INLINE_MODE_NONE, + MLX5_INLINE_MODE_L2, + MLX5_INLINE_MODE_IP, + MLX5_INLINE_MODE_TCP_UDP, +}; + enum { MLX5_MAX_COMMANDS = 32, MLX5_CMD_DATA_BLOCK_SIZE = 512, |