Cloud Native Data Plane (CNDP) is a collection of user space libraries to accelerate packet processing for cloud applications using AF_XDP sockets as the primary I/O..
BSD 3-Clause "New" or "Revised" License
90
stars
32
forks
source link
chnl: add chnl_port to get port from connected channel #388
This PR adds a new chnl_port API function, allowing us to know which port this channel is bound to.
It is important to allocate mbufs when sending data e.g.
This can be easily done as the PCB entry will be linked to a specific port (interface and queue) in the FIB when the connection has been established chnl_accept or chnl_connect has finished.
This PR adds a new
chnl_port
API function, allowing us to know which port this channel is bound to. It is important to allocate mbufs when sending data e.g.This can be easily done as the PCB entry will be linked to a specific port (interface and queue) in the FIB when the connection has been established
chnl_accept
orchnl_connect
has finished.