]> asedeno.scripts.mit.edu Git - linux.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)
commit1d0254dd9b44dd187cbbdfe42f9b2cb6b4aa36a4
tree39191a7547e73f51a0381f9c0bbbd7642221d0cc
parent1528192f8975dbe741de9f9d05c492f81ab7fa71
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