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

2024-03-28 Thread Michael S. Tsirkin
On Thu, Mar 28, 2024 at 01:35:16PM +, Simon Horman wrote: > On Mon, Mar 25, 2024 at 04:49:09PM -0500, Daniel Jurgens wrote: > > Allocate memory for the data when it's used. Ideally the could be on the > > stack, but we can't DMA stack memory. With this change only the header > > and status memo

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

2024-03-28 Thread Simon Horman
On Mon, Mar 25, 2024 at 04:49:09PM -0500, Daniel Jurgens wrote: > Allocate memory for the data when it's used. Ideally the 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

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

2024-03-26 Thread Heng Qi
在 2024/3/26 上午5:49, Daniel Jurgens 写道: Allocate memory for the data when it's used. Ideally the 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 lock than RTNL. Signed-off-by:

[PATCH net-next 2/4] virtio_net: Remove command data from control_buf

2024-03-25 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the 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 lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --