diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-09-30 15:53:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-05 12:23:25 +0200 |
commit | 9c439e4b730f0d519821527afd697e6af99a67ab (patch) | |
tree | 8f9850a37ebedf39dc6645eb3d9cf1d912bb388c /drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | |
parent | amd-xgbe: Add ethtool error and debug messages (diff) | |
download | linux-9c439e4b730f0d519821527afd697e6af99a67ab.tar.xz linux-9c439e4b730f0d519821527afd697e6af99a67ab.zip |
amd-xgbe: Simplify calculation and setting of queue fifos
The calculation of the Tx and Rx fifo sizes can be calculated rather
than hardcoded in a switch statement. Additionally, the per-queue fifo
sizes can be calculated rather than hardcoded using if/else if statements
that can possibly underutilize the available fifo area.
Change the code to calculate the fifo sizes and the per-queue fifo sizes
to simplify the code and make best use of the available fifo.
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-ethtool.c')
0 files changed, 0 insertions, 0 deletions