mlx5dv_create_fl...ion_modify_header(3)
π mlx5dv_create_flow_action_modify_header π
okay bestie, this page is from the mlx5dv_create_fl...ion_modify_header(3) manual, and it's giving βlet me mutate a packet headerβ energy. iconic. β¨
πΈ NAME πΈ
mlx5dv_create_flow_action_modify_header β Flow action modify header for mlx5 provider. no cap, that's the whole name vibe. π
β¨ SYNOPSIS β¨
#include <infiniband/mlx5dv.h>
struct ibv_flow_action *
mlx5dv_create_flow_action_modify_header(struct ibv_context *ctx,
size_t actions_sz,
uint64_t actions[],
enum mlx5dv_flow_table_type ft_type)
π¦ DESCRIPTION π¦
so this function creates a modify header flow steering action, and it lets you mutate a packet header. yes, actual packet-header makeover. π
π ARGUMENTS π
ctxβ the RDMA device context you're creating the action on. literally the context bestie. π«Άactions_szβ the size of theactionsbuffer, in bytes. count those bytes, queen. π₯actionsβ a buffer containing the modify actions provided in device spec format (i.e.be64). keep it exact, iykyk. βft_typeβ defines the flow table type to which the modify header action will be attached. the vibe check for where this action lives. π«MLX5DV_FLOW_TABLE_TYPE_NIC_RX: RX FLOW TABLEMLX5DV_FLOW_TABLE_TYPE_NIC_TX: TX FLOW TABLE
π RETURN VALUE π
upon success, mlx5dv_create_flow_action_modify_header will return a new struct ibv_flow_action object. slay. β¨
on error, NULL will be returned and errno will be set. not the cute outcome, but at least you know. π
π SEE ALSO π
that's the whole page, bestie π source/version and date: not listed on this page β the footer is just the manual name mlx5dv_create_fl...ion_modify_header(3) β so here's your cute lil sign-off instead π«Άπβ¨
π¦ 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