|
@@ -307,14 +307,14 @@ static int tap_set_vnet_be(NetClientState *nc, bool is_be)
|
|
|
}
|
|
|
|
|
|
static void tap_set_offload(NetClientState *nc, int csum, int tso4,
|
|
|
- int tso6, int ecn, int ufo)
|
|
|
+ int tso6, int ecn, int ufo, int uso4, int uso6)
|
|
|
{
|
|
|
TAPState *s = DO_UPCAST(TAPState, nc, nc);
|
|
|
if (s->fd < 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- tap_fd_set_offload(s->fd, csum, tso4, tso6, ecn, ufo);
|
|
|
+ tap_fd_set_offload(s->fd, csum, tso4, tso6, ecn, ufo, uso4, uso6);
|
|
|
}
|
|
|
|
|
|
static void tap_exit_notify(Notifier *notifier, void *data)
|
|
@@ -414,7 +414,7 @@ static TAPState *net_tap_fd_init(NetClientState *peer,
|
|
|
s->using_vnet_hdr = false;
|
|
|
s->has_ufo = tap_probe_has_ufo(s->fd);
|
|
|
s->enabled = true;
|
|
|
- tap_set_offload(&s->nc, 0, 0, 0, 0, 0);
|
|
|
+ tap_set_offload(&s->nc, 0, 0, 0, 0, 0, 0, 0);
|
|
|
/*
|
|
|
* Make sure host header length is set correctly in tap:
|
|
|
* it might have been modified by another instance of qemu.
|