aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2015-09-30 08:53:03 -0500
committerDavid S. Miller <davem@davemloft.net>2015-10-05 03:23:25 -0700
commit9c439e4b730f0d519821527afd697e6af99a67ab (patch)
tree8f9850a37ebedf39dc6645eb3d9cf1d912bb388c /drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
parentamd-xgbe: Add ethtool error and debug messages (diff)
downloadlinux-dev-9c439e4b730f0d519821527afd697e6af99a67ab.tar.xz
linux-dev-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