net/virtio: add check for cvq
authorZhiyong Yang <zhiyong.yang@intel.com>
Wed, 21 Mar 2018 03:03:41 +0000 (11:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commitac860c86e3be03d1e933611c179dc1fc6dd981cc
treec9a81b0b1fa6e77aedbf516c096700a9c850ef3a
parent7c7f2e6088aeb24d9ffbf41d1076512ca8da8a85
net/virtio: add check for cvq

Add checking for cvq to judge if virtio_ack_link_announce should be called.
The existing code doesn't cause issue, and add the checking just to look
more reasonable.

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c