ixgbe: Improve statistics accuracy for DDP traffic
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 18 Jul 2012 06:05:50 +0000 (06:05 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 16 Sep 2012 05:43:25 +0000 (22:43 -0700)
commit4ffdf91a5feae6f0f1486d038fcbba461345fa62
treec816e66f5f51aff43ac916a9ef1f9e78385aab85
parent91fbd8f081e22a3d296b45766eaf5045925f9313
ixgbe: Improve statistics accuracy for DDP traffic

Noticed that the byte and packet count statistics are under-
counting traffic handled by the DDP offload when there is more
than one DDP completion processed in a single call to
ixgbe_clean_rx_irq. This patch fixes that.

I tried to optimize the setting of the rss value so that it
only would have to be computed once, and only when there is
a DDP completion present.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c