Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
e4efbe7
)
tap: remove cxq_vring from tap/tun
98/33798/1
author
Mohsin Kazmi
<sykazmi@cisco.com>
Wed, 22 Sep 2021 20:22:05 +0000
(20:22 +0000)
committer
Mohsin Kazmi
<sykazmi@cisco.com>
Wed, 22 Sep 2021 20:22:05 +0000
(20:22 +0000)
Type: fix
virtio_if_t is shared data struct between tap, tun and virtio pci.
cxq_vring is virtio pci specific element. It shouldn't be set or
accessed in tap driver.
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I8b34570f61b38d8b9d79d5b0669bda0f89ebc28c
src/vnet/devices/tap/tap.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/tap/tap.c
b/src/vnet/devices/tap/tap.c
index
8fca35d
..
014c1f0
100644
(file)
--- a/
src/vnet/devices/tap/tap.c
+++ b/
src/vnet/devices/tap/tap.c
@@
-740,7
+740,6
@@
tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
* TUNSETCARRIER ioctl(). See tap_set_carrier().
*/
vif->host_carrier_up = 1;
* TUNSETCARRIER ioctl(). See tap_set_carrier().
*/
vif->host_carrier_up = 1;
- vif->cxq_vring = NULL;
goto done;
goto done;