Skip to content

Commit

Permalink
libxdp: Add comments for struct xsk_umem_opts
Browse files Browse the repository at this point in the history
Signed-off-by: Muyang Tian <[email protected]>
  • Loading branch information
tacslon committed Oct 22, 2024
1 parent 5726ebe commit d807dc0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions headers/xdp/xsk.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,20 @@ struct xsk_umem_config {
__u32 tx_metadata_len;
};

/* The following fields are required, and must be set at once:
*
* @umem_area, @size, @fill, @comp
* Where @umem_area must be page-aligned, and @size must be positive.
*
* The following fields are optional:
*
* @fd, @usr_config
* If @fd is unset, a new sockfd will be created.
* If @usr_config is unset, all fields in @usr_config will be set to
* default value (see `xsk_set_umem_config()`).
*
* Except for the fields mentioned above, none field can be set.
*/
struct xsk_umem_opts {
size_t sz;
int fd;
Expand Down

0 comments on commit d807dc0

Please sign in to comment.