[Intel-wired-lan] [PATCH v5 4/9] igc: Refactor XDP rxq info registration
Dvora Fuxbrumer
dvorax.fuxbrumer at linux.intel.com
Thu Apr 8 10:10:32 UTC 2021
On 26/02/2021 02:23, Jithu Joseph wrote:
> From: Andre Guedes <andre.guedes at intel.com>
>
> Refactor XDP rxq info registration code, preparing the driver for AF_XDP
> zero-copy support which is added by upcoming patches.
>
> Currently, xdp_rxq and memory model are both registered during RX
> resource setup time by igc_xdp_register_rxq_info() helper. With AF_XDP,
> we want to register the memory model later on while configuring the ring
> because we will know which memory model type to register
> (MEM_TYPE_PAGE_SHARED or MEM_TYPE_XSK_BUFF_POOL).
>
> The helpers igc_xdp_register_rxq_info() and igc_xdp_unregister_rxq_
> info() are not useful anymore so they are removed.
>
> Signed-off-by: Andre Guedes <andre.guedes at intel.com>
> Signed-off-by: Vedang Patel <vedang.patel at intel.com>
> Signed-off-by: Jithu Joseph <jithu.joseph at intel.com>
> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 16 ++++++++++----
> drivers/net/ethernet/intel/igc/igc_xdp.c | 27 -----------------------
> drivers/net/ethernet/intel/igc/igc_xdp.h | 3 ---
> 3 files changed, 12 insertions(+), 34 deletions(-)
>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer at linux.intel.com>
More information about the Intel-wired-lan
mailing list