]> 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)
commit480ab8ad37ff383363b918905fbfb7ec7bf37e61
tree39191a7547e73f51a0381f9c0bbbd7642221d0cc
parent05d30fc1c73ab2c9820bcd3026c4c1c8ded20a81
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