RE: [PATCH net-next v6 2/6] virtio_net: Remove command data from control_buf

2024-05-15 Thread Dan Jurgens
o > > Subject: Re: [PATCH net-next v6 2/6] virtio_net: Remove command data > from control_buf > > On Fri, May 3, 2024 at 10:25 PM Daniel Jurgens wrote: > > > > Allocate memory for the data when it's used. Ideally the struct could > > be on the stack, but

Re: [PATCH net-next v6 2/6] virtio_net: Remove command data from control_buf

2024-05-15 Thread Eric Dumazet
On Fri, May 3, 2024 at 10:25 PM Daniel Jurgens wrote: > > Allocate memory for the data when it's used. Ideally the struct could > be on the stack, but we can't DMA stack memory. With this change only > the header and status memory are shared between commands, which will > allow using a tighter loc