r8152: set the RMS of RTL8153 according to the mtu
authorhayeswang <hayeswang@realtek.com>
Mon, 20 Mar 2017 08:13:44 +0000 (16:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 17:50:36 +0000 (10:50 -0700)
commit210c4f70b4c630b27f0840c8043c138c955edc9e
treeb23b516abc1df33c1e2578b5b379d7b9781f2ccd
parenta05d4fd9176003e0c1f9c3d083f4dac19fd346ab
r8152: set the RMS of RTL8153 according to the mtu

Set the received maximum size (RMS) according to the mtu size. It is
unnecessary to receive a packet which is more than the size we could
transmit. Besides, this could let the rx buffer be used effectively.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c