mlx5dv_flow_action_esp(3)
π¦ mlx5dv_flow_action_esp(3) β Flow action esp for mlx5 provider π¦
Bestie, welcome to the mlx5dv_flow_action_esp(3) page. Itβs giving βmlx5 provider flow action espβ and weβre about to make it make sense. π
π NAME π
mlx5dv_flow_action_esp β Flow action esp for mlx5 provider.
β¨ SYNOPSIS β¨
#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);
π¦ DESCRIPTION π¦
Okay so this creates an IPSEC ESP flow steering action. π«Ά
Itβs literally identical to the ibv_create_flow_action_esp verb, but it lets you use mlx5-specific flags. Slay. β¨
π ARGUMENTS π
For ctx and esp, please see the ibv_flow_action_esp(3) man page, bestie. π«Ά
π mlx5_attr argument π
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 */
};
π
comp_mask π
Bitmask specifying what fields in the structure are valid (enum mlx5dv_flow_action_esp_mask). π
π
action_flags π
A bitwise OR of the various values described below. π₯
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 type0x8CE4, followed by 6 bytes of data and the original packet ethertype. π
π NOTE π
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. No cap, thatβs just how it is. π¦
π SEE ALSO π
ibv_flow_action_esp(3)RFC 4106
Cute sign-off: the footer on this page is just mlx5dv_flow_action_esp(3) π β thereβs no separate source/version/date text in the original footer, so thatβs the whole sign-off. Bye bestie, go slay those IPSEC ESP flow steering actions! ππ
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms