Prashant Malani [mailto:[email protected]]
> Sent: Wednesday, August 28, 2019 2:02 AM
> To: Hayes Wang; [email protected]
> Cc: [email protected]; [email protected]; nic_swsd; Prashant
> Malani
> Subject: [PATCH] r8152: Add rx_buf_sz field to struct r8152
>
> tp->rx_buf_sz is set according to the specific version of HW being used.
>
> agg_buf_sz was originally added to support LSO (Large Send Offload) and
> then seems to have been co-opted for LRO (Large Receive Offload). But RX
> large buffer size can be larger than TX large buffer size with newer HW.
> Using larger buffers can result in fewer "large RX packets" processed
> by the rest of the networking stack to reduce RX CPU utilization.
>
> This patch is copied from the r8152 driver (v2.12.0) published by
> Realtek (www.realtek.com).
>
> Signed-off-by: Prashant Malani <[email protected]>
> Reviewed-by: Grant Grundler <[email protected]>
> ---
It seems as same as the commit ec5791c202ac ("r8152: separate the rx
buffer size").
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/
commit/?id=ec5791c202aca90c1b3b99dff268a995cf2d6aa1
Best Regards,
Hayes