r8152: fix the rx early size of RTL8153
commitbfb38fbd868d5780f7a57d9ec46979041d387172
authorhayeswang <hayeswang@realtek.com>
Mon, 20 Mar 2017 08:13:45 +0000 (20 16:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:39 +0000 (25 14:23 +0100)
tree95011fd825d306a5c05ea885f2ece222286baed2
parent7171aa2680b2ff7c946c89ec36aa82a41f6fce55
r8152: fix the rx early size of RTL8153

[ Upstream commit b20cb60e2b865638459e6ec82ad3536d3734e555 ]

revert commit a59e6d815226 ("r8152: correct the rx early size") and
fix the rx early size as

(rx buffer size - rx packet size - rx desc size - alignment) / 4

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c