The different chips use different rx buffer size.
Use skb_add_rx_frag() to reduce memory copy for RX.
Hayes Wang (5):
r8152: separate the rx buffer size
r8152: replace array with linking list for rx information
r8152: use alloc_pages for rx buffer
r8152: support skb_add_rx_frag
r8152: change rx_frag_head_sz and rx_max_agg_num dynamically
drivers/net/usb/r8152.c | 415 +++++++++++++++++++++++++++++++++-------
1 file changed, 346 insertions(+), 69 deletions(-)
--
2.21.0