OSDN Git Service

igc: Introduce TX/RX stats helpers
authorAndre Guedes <andre.guedes@intel.com>
Fri, 23 Apr 2021 06:25:51 +0000 (23:25 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 20 May 2021 17:17:06 +0000 (10:17 -0700)
commita27e6e73e5501fd0cb84467d71ddeac9a5855e0b
treeebb554bd2ce1f5085c5772b08caab0c7851bc8dd
parent4609ffb9f6157880e76c038f8df4fbf4e148a41a
igc: Introduce TX/RX stats helpers

In preparation for AF_XDP zero-copy support, encapsulate the code that
updates the driver RX stats in its own local helper so it can be reused
in the zero-copy path. Likewise, encapsulate TX stats code as well.

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