net/virtio: fix guest announce support
authorTiwei Bie <tiwei.bie@intel.com>
Mon, 29 Oct 2018 05:28:08 +0000 (13:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit5db1684e7593c6fc8769b19765c8c6b9d4697f45
tree2014a28347e2ebfde4d3783bfc01ba0ca9dd125c
parentbd9568f32121123f90bb39095f64f7a3ada0fe29
net/virtio: fix guest announce support

We need to check the status field in virtio net config structure
instead of the bits read from ISR register to know whether we need
to do guest announce.

Fixes: 7365504f77e3 ("net/virtio: support guest announce")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c