Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8712u: Reduce maximum receive buffer size to a more sensible value

The current value for the maximum receive buffer size is 30720, which is
too large. For long-running systems, memory fragmentation may make it
difficult to obtain the buffers of O(2) needed for aggregation. Buffers
of O(3) are even worse, particularly when not needed. The new size is set
to 9100, which will allow aggregation.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Larry Finger and committed by
Greg Kroah-Hartman
c5003749 103b748e

+1 -1
+1 -1
drivers/staging/rtl8712/rtl8712_recv.h
··· 41 41 #define RECV_BLK_SZ 512 42 42 #define RECV_BLK_CNT 16 43 43 #define RECV_BLK_TH RECV_BLK_CNT 44 - #define MAX_RECVBUF_SZ (30720) /* 30K */ 44 + #define MAX_RECVBUF_SZ 9100 45 45 #define RECVBUFF_ALIGN_SZ 512 46 46 #define RSVD_ROOM_SZ (0) 47 47 /*These definition is used for Rx packet reordering.*/