]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: replace rx_buf_sz with a constant
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Apr 2018 21:25:46 +0000 (23:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:11:58 +0000 (21:11 -0400)
commit492f742779b27bb311b6f5901b637c0bd5aaf67d
tree39191a7547e73f51a0381f9c0bbbd7642221d0cc
parentd1a595fa9242c764e7798b9831ffbf9146e18505
r8169: replace rx_buf_sz with a constant

rx_buf_sz is constant, so we don't have to pass it as parameter and
in general can replace it with a constant.

When working on this I noticed that also before in
rtl_set_rx_max_size() a value of 0x4000 is set, what is not in line
with the chip spec. According to the spec only bits 0..13 are used
and we set an effective value of zero therefore.
However, the driver still seems to work and due to potential side
effects I'm reluctant to make a change.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c