igb: Remove artificial restriction on RQDPC stat reading
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 8 Aug 2012 05:23:22 +0000 (05:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Feb 2013 18:46:20 +0000 (10:46 -0800)
commitf4dc0e6ec906da70d1edf6d00f49b792f47f2efd
tree8802498984ae746212dc308b443ba70259e53141
parente862f5583a92ac9680bdb18a0e5dffe2a2c3d464
igb: Remove artificial restriction on RQDPC stat reading

commit ae1c07a6b7ced6c0c94c99e3b53f4e7856fa8bff upstream.

For some reason the reading of the RQDPC register was being artificially
limited to 4K.  Instead of limiting the value we should read the value and
add the full amount.  Otherwise this can lead to a misleading number of
dropped packets when the actual value is in fact much higher.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Vinson Lee <vlee@twitter.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/igb/igb_main.c