[Intel-wired-lan] [PATCH v6 7/9] igc: Replace IGC_TX_FLAGS_XDP flag by an enum
Dvora Fuxbrumer
dvorax.fuxbrumer at linux.intel.com
Thu May 20 06:59:31 UTC 2021
On 23/04/2021 09:25, Jithu Joseph wrote:
> From: Andre Guedes <andre.guedes at intel.com>
>
> Up to this point, tx buffers are associated with either a skb or a xdpf,
> and the IGC_TX_FLAGS_XDP flag was enough to distinguish between these
> two case. However, with upcoming patches that will add AF_XDP zero-copy
> support, a third case will be introduced so this flag-based approach
> won't fit well.
>
> In preparation to land AF_XDP zero-copy support, replace the
> IGC_TX_FLAGS_XDP flag by an enum which will be extended once zero-copy
> support is introduced to the driver.
>
> 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.h | 8 +++++--
> drivers/net/ethernet/intel/igc/igc_main.c | 27 ++++++++++++++++++-----
> 2 files changed, 28 insertions(+), 7 deletions(-)
>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer at linux.intel.com>
More information about the Intel-wired-lan
mailing list