git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: refactor multi-queue Rx configuration
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user_ethdev.c
diff --git
a/drivers/net/virtio/virtio_user_ethdev.c
b/drivers/net/virtio/virtio_user_ethdev.c
index
9314ca5
..
e85906e
100644
(file)
--- a/
drivers/net/virtio/virtio_user_ethdev.c
+++ b/
drivers/net/virtio/virtio_user_ethdev.c
@@
-360,7
+360,7
@@
vdpa_dynamic_major_num(void)
{
FILE *fp;
char *line = NULL;
{
FILE *fp;
char *line = NULL;
- size_t size;
+ size_t size
= 0
;
char name[11];
bool found = false;
uint32_t num;
char name[11];
bool found = false;
uint32_t num;
@@
-380,6
+380,7
@@
vdpa_dynamic_major_num(void)
break;
}
}
break;
}
}
+ free(line);
fclose(fp);
return found ? num : UNNAMED_MAJOR;
}
fclose(fp);
return found ? num : UNNAMED_MAJOR;
}
@@
-428,7
+429,6
@@
virtio_user_eth_dev_alloc(struct rte_vdev_device *vdev)
hw = &dev->hw;
hw->port_id = data->port_id;
hw = &dev->hw;
hw->port_id = data->port_id;
- dev->port_id = data->port_id;
VIRTIO_OPS(hw) = &virtio_user_ops;
hw->intr_lsc = 1;
VIRTIO_OPS(hw) = &virtio_user_ops;
hw->intr_lsc = 1;