]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Reported fifo size from hardware is not correct
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 29 Aug 2014 18:16:56 +0000 (13:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 03:38:14 +0000 (20:38 -0700)
commit87b38aa18e29134220985aa22db34cef6d19f375
tree62cd16e3e0ab4cf13bc85a40fd73f4db98d84170
parente9f95ffa6f35de81662b6a18e9e13a5dcd58a810
amd-xgbe: Reported fifo size from hardware is not correct

The fifo size reported by the hardware is not correct. Add support
to limit the reported size to what is actually present.  Also, fix
the argument types used in the fifo size calculation function.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
drivers/net/ethernet/amd/xgbe/xgbe.h