Revision a5fd2c34 net/tap.c

b/net/tap.c
269 269
                     int tso6, int ecn, int ufo)
270 270
{
271 271
    TAPState *s = DO_UPCAST(TAPState, nc, nc);
272
    if (s->fd < 0) {
273
        return;
274
    }
272 275

  
273
    return tap_fd_set_offload(s->fd, csum, tso4, tso6, ecn, ufo);
276
    tap_fd_set_offload(s->fd, csum, tso4, tso6, ecn, ufo);
274 277
}
275 278

  
276 279
static void tap_cleanup(VLANClientState *nc)
......
290 293
    tap_read_poll(s, 0);
291 294
    tap_write_poll(s, 0);
292 295
    close(s->fd);
296
    s->fd = -1;
293 297
}
294 298

  
295 299
static void tap_poll(VLANClientState *nc, bool enable)

Also available in: Unified diff