]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Introduce igc_unmap_tx_buffer() helper
authorAndre Guedes <andre.guedes@intel.com>
Fri, 23 Apr 2021 06:25:52 +0000 (23:25 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 20 May 2021 17:21:06 +0000 (10:21 -0700)
commitcc4ec6e789d1aa00c1c5d0669dd06ff91776733f
treea36602607651c83fcb97832711b0b3cdf9a7f802
parent6697831f0c8a57d8843e70065c129187996c6b21
igc: Introduce igc_unmap_tx_buffer() helper

In preparation for AF_XDP zero-copy support, encapsulate the code that
unmaps Tx buffers into its own local helper so we can reuse it, avoiding
code duplication.

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>
drivers/net/ethernet/intel/igc/igc_main.c