Also mention the default value 4096.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
I have a driver that sends 4352 byte packets. Tested with tcp socket only.
There's also 4096 byte buffers in vde, but I don't use/test it.
net.c |4
net/socket.c| 54 +
Also mention the default value 4096.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
free new buffers in net_socket_cleanup()
net.c |4
net/socket.c| 52
qemu-options.hx | 11 ++-
3 files changed, 46 insertions(+),
2011/4/22 Nguyễn Thái Ngọc Duy :
> @@ -288,6 +291,10 @@ static NetSocketState
> *net_socket_fd_init_dgram(VLANState *vlan,
>
> s = DO_UPCAST(NetSocketState, nc, nc);
>
> + s->mtu = mtu;
> + s->buf = qemu_malloc(s->mtu);
> + s->buf1 = qemu_malloc(s->mtu);
These need to be freed in net
2011/4/22 Nguyễn Thái Ngọc Duy :
> Also mention the default value 4096.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> free new buffers in net_socket_cleanup()
>
> net.c | 4
> net/socket.c | 52
> qemu-options.hx | 1
On Fri, Apr 22, 2011 at 07:59:28PM +0700, Nguyễn Thái Ngọc Duy wrote:
> Also mention the default value 4096.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
IS the option really necessary? Why not just allocate 128K or so and be
done with it? That should be big enough even with GSO etc.
> ---
> free n
2011/5/16 Michael S. Tsirkin :
> On Fri, Apr 22, 2011 at 07:59:28PM +0700, Nguyễn Thái Ngọc Duy wrote:
>> Also mention the default value 4096.
>>
>> Signed-off-by: Nguyễn Thái Ngọc Duy
>
> IS the option really necessary? Why not just allocate 128K or so and be
> done with it? That should be big en