1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2021 6WIND S.A.
3 * Copyright 2021 Mellanox Technologies, Ltd
9 * Generate routines with Legacy Multi-Packet Write support.
10 * This mode is supported by ConnectX-4 Lx only and imposes
11 * offload limitations, not supported:
12 * - ACL/Flows (metadata are becoming meaningless)
13 * - WQE Inline headers
14 * - SRIOV (E-Switch offloads)
16 * - tunnel encapsulation/decapsulation
19 MLX5_TXOFF_DECL(none_mpw,
20 MLX5_TXOFF_CONFIG_NONE | MLX5_TXOFF_CONFIG_EMPW |
21 MLX5_TXOFF_CONFIG_MPW)
23 MLX5_TXOFF_DECL(mci_mpw,
24 MLX5_TXOFF_CONFIG_MULTI | MLX5_TXOFF_CONFIG_CSUM |
25 MLX5_TXOFF_CONFIG_INLINE | MLX5_TXOFF_CONFIG_EMPW |
26 MLX5_TXOFF_CONFIG_MPW)
28 MLX5_TXOFF_DECL(mc_mpw,
29 MLX5_TXOFF_CONFIG_MULTI | MLX5_TXOFF_CONFIG_CSUM |
30 MLX5_TXOFF_CONFIG_EMPW | MLX5_TXOFF_CONFIG_MPW)
32 MLX5_TXOFF_DECL(i_mpw,
33 MLX5_TXOFF_CONFIG_INLINE | MLX5_TXOFF_CONFIG_EMPW |
34 MLX5_TXOFF_CONFIG_MPW)