diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-03-20 11:50:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-20 16:33:57 -0400 |
commit | 4a57ebcc2c1e8a924c3897df2c11c5d4620ec89e (patch) | |
tree | de0886860782befd0b2730bb6097e028f189ad28 /drivers/net/ethernet/amd/xgbe/xgbe.h | |
parent | c635eaacbf77bd6dae917925ef1e76d044b0da07 (diff) | |
download | linux-4a57ebcc2c1e8a924c3897df2c11c5d4620ec89e.tar.bz2 |
amd-xgbe: Fix Rx coalescing reporting
The Rx coalescing value is internally converted from usecs to a value
that the hardware can use. When reporting the Rx coalescing value, this
internal value is converted back to usecs. During the conversion from
and back to usecs some rounding occurs. So, for example, when setting an
Rx usec of 30, it will be reported as 29. Fix this reporting issue by
keeping the original usec value and using that during reporting.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe.h')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index 72b8f27e7216..dd742426eb04 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -716,6 +716,7 @@ struct xgbe_prv_data { /* Rx coalescing settings */ unsigned int rx_riwt; + unsigned int rx_usecs; unsigned int rx_frames; /* Current Rx buffer size */ |