mlx5dv_flow_action_esp(3) | mlx5dv_flow_action_esp(3) |
mlx5dv_flow_action_esp - Flow action esp for mlx5 provider
#include <infiniband/mlx5/mlx5dv.h> struct ibv_flow_action * mlx5dv_create_flow_action_esp(struct ibv_context *ctx, struct ibv_flow_action_esp_attr *esp, struct mlx5dv_flow_action_esp *mlx5_attr);
Create an IPSEC ESP flow steering action.
This verb is identical to ibv_create_flow_action_esp verb, but allows mlx5 specific flags.
Please see ibv_flow_action_esp(3) man page for ctx and esp.
struct mlx5dv_flow_action_esp { uint64_t comp_mask; /* Use enum mlx5dv_flow_action_esp_mask */ uint32_t action_flags; /* Use enum mlx5dv_flow_action_flags */ };
MLX5DV_FLOW_ACTION_FLAGS_REQUIRE_METADATA:
Each received and transmitted packet using offload is expected to carry metadata in the form of a L2 header
with ethernet type 0x8CE4, followed by 6 bytes of data and the original packet ethertype.
The ESN is expected to be placed in the IV field for egress packets.
The 64 bit sequence number is written in big-endian over the 64 bit IV field.
There is no need to call modify to update the ESN window on egress when this DV is used.
ibv_flow_action_esp(3), RFC 4106