Re: [PATCH net-next v4 12/15] virtio_net: small: avoid double counting in xdp scenarios

2023-04-27 Thread Xuan Zhuo
On Thu, 27 Apr 2023 21:08:25 -0400, "Michael S. Tsirkin" wrote: > On Thu, Apr 27, 2023 at 11:05:31AM +0800, Xuan Zhuo wrote: > > Avoid the problem that some variables(headroom and so on) will repeat > > the calculation when process xdp. > > > > Signed-off-by: Xuan Zhuo > > Acked-by: Jason Wang

Re: [PATCH net-next v4 12/15] virtio_net: small: avoid double counting in xdp scenarios

2023-04-27 Thread Michael S. Tsirkin
On Thu, Apr 27, 2023 at 11:05:31AM +0800, Xuan Zhuo wrote: > Avoid the problem that some variables(headroom and so on) will repeat > the calculation when process xdp. > > Signed-off-by: Xuan Zhuo > Acked-by: Jason Wang this is "code duplication" not "double counting". > --- >

[PATCH net-next v4 12/15] virtio_net: small: avoid double counting in xdp scenarios

2023-04-26 Thread Xuan Zhuo
Avoid the problem that some variables(headroom and so on) will repeat the calculation when process xdp. Signed-off-by: Xuan Zhuo Acked-by: Jason Wang --- drivers/net/virtio_net.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/virtio_net.c