From: Mohsin Kazmi Date: Wed, 22 Sep 2021 20:22:05 +0000 (+0000) Subject: tap: remove cxq_vring from tap/tun X-Git-Tag: v22.02-rc0~4 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a7d2aabae865f6d34a8307896c2ad0056c4984dc;p=vpp.git tap: remove cxq_vring from tap/tun 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 Change-Id: I8b34570f61b38d8b9d79d5b0669bda0f89ebc28c --- diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c index 8fca35df202..014c1f0dad4 100644 --- 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; - vif->cxq_vring = NULL; goto done;