mlx5dv_modify_qp_lag_port(3)

✨ mlx5dv_modify_qp_lag_port(3) ✨

okay bestie, so this one lives in the mlx5dv_modify_qp_lag_port section 3 club πŸ’… and it's literally about changing the lag port info on a QP. yes, that QP. let's get into it 🫢


🌸 NAME 🌸

mlx5dv_modify_qp_lag_port β€” modify the lag port information of a given QP ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <infiniband/mlx5dv.h>

int mlx5dv_modify_qp_lag_port(struct ibv_qp *qp, uint8_t port_num);

πŸ¦‹ DESCRIPTION πŸ¦‹

So this API is the moment where you get to modify the configured port num of a given QP. like, that's the whole vibe πŸ’«

One thing tho, bestie, listen up: if the QP state gets modified later on, the port num may be implicitly re-configured. so don't come for me when it changes on its own, that's just how it is πŸ™ˆ

If you wanna check the configured and active port num values, use query mlx5dv_query_qp_lag_port. it's giving "trust but verify" πŸ”


🌈 ARGUMENTS 🌈

  • qp β€” the ibv_qp object you're issuing the action on. the main character of this call πŸ‘‘
  • port_num β€” the port_num you wanna set for the QP. that's it, that's the value 🎯

⭐ RETURN VALUE ⭐

  • 0 on success β€” slay ✨
  • EOPNOTSUPP if you're not in LAG mode β€” sorry babe, wrong vibe check πŸ’€
  • or any other errno value on other failures. no cap, other stuff can go wrong too 😭

πŸ’œ SEE ALSO πŸ’œ


🧚 AUTHOR 🧚

Aharon Landau <aharonl@mellanox.com> β€” iconic honestly πŸŽ€


and that's the whole page, bestie! this lil gem comes from the mlx5dv_modify_qp_lag_port(3) source, and the date on the original footer is the same as the header date β€” so go forth and modify those lag ports responsibly πŸ’–

πŸ“¦ where this page comes from