.. index:: pair: struct; net_drv_xdp_cfg .. _doxid-structnet__drv__xdp__cfg: struct net_drv_xdp_cfg ====================== .. toctree:: :hidden: Overview ~~~~~~~~ Configuration parameters for AF_XDP sockets :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct net_drv_xdp_cfg { // fields unsigned int :ref:`frame_len`; size_t :ref:`frames_num`; unsigned int :ref:`rx_frames`; unsigned int :ref:`fill_size`; unsigned int :ref:`comp_size`; unsigned int :ref:`rx_size`; unsigned int :ref:`tx_size`; uint32_t :ref:`bind_flags`; }; .. _details-structnet__drv__xdp__cfg: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Configuration parameters for AF_XDP sockets Fields ------ .. index:: pair: variable; frame_len .. _doxid-structnet__drv__xdp__cfg_1ae99bcdda4796ad5c2ee70615229c1fb0: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int frame_len Frame length .. index:: pair: variable; frames_num .. _doxid-structnet__drv__xdp__cfg_1ae41e83ecd5196af4ab46b4702b1441e2: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t frames_num Number of frames in UMEM .. index:: pair: variable; rx_frames .. _doxid-structnet__drv__xdp__cfg_1aba3f0f48f61b559cdfbb3e2165e623ab: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int rx_frames Frames reserved for receiving .. index:: pair: variable; fill_size .. _doxid-structnet__drv__xdp__cfg_1a5357d0e7e89b2b610d1a2918021757cc: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int fill_size Size of FILL ring .. index:: pair: variable; comp_size .. _doxid-structnet__drv__xdp__cfg_1a38d95490b873e15d0b7f4c7c6029abbb: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int comp_size Size of COMPLETION ring .. index:: pair: variable; rx_size .. _doxid-structnet__drv__xdp__cfg_1af7480b40faae8703222b4a4522179d3e: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int rx_size Size of Rx ring .. index:: pair: variable; tx_size .. _doxid-structnet__drv__xdp__cfg_1a943471377646a9cae8feac42d2d75039: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned int tx_size Size of Tx ring .. index:: pair: variable; bind_flags .. _doxid-structnet__drv__xdp__cfg_1a89d4aa6b458a6e6961809baf9b31a5b1: .. ref-code-block:: cpp :class: doxyrest-title-code-block uint32_t bind_flags Flags passed when binding AF_XDP socket