diff options
author | Andre Guedes <andre.guedes@intel.com> | 2021-04-22 23:25:53 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-05-20 10:21:24 -0700 |
commit | 859b4dfa4115d11aa1fda7d0628a93a9d61a7c46 (patch) | |
tree | 4af1a230a63605b43541006209761af3bc263dde /drivers/net/ethernet/intel/igc/igc_xdp.c | |
parent | 6123429516c7fc6a7ee2f0a9dbef8c0c16ffb7cc (diff) |
igc: Replace IGC_TX_FLAGS_XDP flag by an enum
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@intel.com>
Signed-off-by: Vedang Patel <vedang.patel@intel.com>
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_xdp.c')
0 files changed, 0 insertions, 0 deletions