r8152: support skb_add_rx_frag
authorHayes Wang <hayeswang@realtek.com>
Tue, 13 Aug 2019 03:42:08 +0000 (11:42 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 14 Aug 2019 01:12:08 +0000 (18:12 -0700)
commit47922fcde5365a2d37e8d4056e537fc8a7213c39
tree700df8ef6e8f48594c1c94b83a5cda660f726eb3
parentd55d70894c6d4709b9ae61109a9fa7c319586b53
r8152: support skb_add_rx_frag

Use skb_add_rx_frag() to reduce the memory copy for rx data.

Use a new list of rx_used to store the rx buffer which couldn't be
reused yet.

Besides, the total number of rx buffer may be increased or decreased
dynamically. And it is limited by RTL8152_MAX_RX_AGG.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/usb/r8152.c