Prashant Malani [mailto:pmal...@chromium.org] > Sent: Wednesday, August 28, 2019 2:02 AM > To: Hayes Wang; da...@davemloft.net > Cc: grund...@chromium.org; netdev@vger.kernel.org; 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 <pmal...@chromium.org> > Reviewed-by: Grant Grundler <grund...@chromium.org> > ---
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