diff options
author | Jason Wang <jasowang@redhat.com> | 2014-11-20 17:03:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 00:26:43 -0500 |
commit | 892d6eb1245b771987afb8667a65344e568d3439 (patch) | |
tree | 5695d9a2cffaa2d0772d573e8a273f1a4555206d /net | |
parent | 7e09dccd07518729fe3cf586beb83acffa2e64ca (diff) |
virtio-net: validate features during probe
We currently trigger BUG when VIRTIO_NET_F_CTRL_VQ
is not set but one of features depending on it is.
That's not a friendly way to report errors to
hypervisors.
Let's check, and fail probe instead.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions