From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dvora Fuxbrumer Date: Thu, 8 Apr 2021 13:12:27 +0300 Subject: [Intel-wired-lan] [PATCH v5 7/9] igc: Replace IGC_TX_FLAGS_XDP flag by an enum In-Reply-To: <20210226002308.2348-8-jithu.joseph@intel.com> References: <20210226002308.2348-1-jithu.joseph@intel.com> <20210226002308.2348-8-jithu.joseph@intel.com> Message-ID: <38b5a524-9d8a-c143-b671-a0bc38f24698@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On 26/02/2021 02:23, Jithu Joseph wrote: > From: Andre Guedes > > 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 > Signed-off-by: Vedang Patel > Signed-off-by: Jithu Joseph > Reviewed-by: Maciej Fijalkowski > --- > 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