Changes in uspace/drv/nic/virtio-net/virtio-net.c [8fed3ef:09ab0a9a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
r8fed3ef r09ab0a9a 211 211 ddf_msg(LVL_NOTE, "Unsupported number of virtqueues: %u", 212 212 num_queues); 213 rc = ELIMIT;214 213 goto fail; 215 214 } … … 343 342 assert(descno < TX_BUFFERS); 344 343 345 /* Setup the packe theader */344 /* Setup the packed header */ 346 345 virtio_net_hdr_t *hdr = (virtio_net_hdr_t *) virtio_net->tx_buf[descno]; 347 346 memset(hdr, 0, sizeof(virtio_net_hdr_t)); 348 347 hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE; 349 hdr->num_buffers = 0;350 348 351 349 /* Copy packet data into the buffer just past the header */ … … 405 403 if (fun == NULL) { 406 404 rc = ENOMEM; 407 goto uninitialize;405 goto error; 408 406 } 409 407 nic_t *nic = ddf_dev_data_get(dev); … … 419 417 if (rc != EOK) { 420 418 ddf_msg(LVL_ERROR, "Failed binding device function"); 421 goto destroy;419 goto uninitialize; 422 420 } 423 421 … … 435 433 unbind: 436 434 ddf_fun_unbind(fun); 437 destroy:438 ddf_fun_destroy(fun);439 435 uninitialize: 440 436 virtio_net_uninitialize(dev); 437 error: 441 438 return rc; 442 439 }
Note:
See TracChangeset
for help on using the changeset viewer.