search for: __virtnet_fail_on_feature

Displaying 6 results from an estimated 6 matches for "__virtnet_fail_on_feature".

2014 Nov 19
2
[PATCH net] virtio-net: validate features during probe
...--git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 26e1330..7a7d1a3 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -1673,6 +1673,21 @@ static const struct attribute_group virtio_net_mrg_rx_group = { > }; > #endif > > +bool __virtnet_fail_on_feature(struct virtio_device *vdev, unsigned int fbit, > + const char *fname) > +{ > + if (!virtio_has_feature(vdev, fbit)) > + return false; > + > + dev_err(&dev->dev, "missing requirements for feature bit %d: %s\n", > + fbit, fname); > + > + r...
2014 Nov 19
2
[PATCH net] virtio-net: validate features during probe
...--git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 26e1330..7a7d1a3 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -1673,6 +1673,21 @@ static const struct attribute_group virtio_net_mrg_rx_group = { > }; > #endif > > +bool __virtnet_fail_on_feature(struct virtio_device *vdev, unsigned int fbit, > + const char *fname) > +{ > + if (!virtio_has_feature(vdev, fbit)) > + return false; > + > + dev_err(&dev->dev, "missing requirements for feature bit %d: %s\n", > + fbit, fname); > + > + r...
2014 Nov 19
4
[PATCH net] virtio-net: validate features during probe
This patch validates feature dependencies during probe and fail the probing if a dependency is missed. This fixes the issues of hitting BUG() when qemu fails to advertise features correctly. One example is booting guest with ctrl_vq=off through qemu. Cc: Rusty Russell <rusty at rustcorp.com.au> Cc: Michael S. Tsirkin <mst at redhat.com> Cc: Cornelia Huck <cornelia.huck at
2014 Nov 19
4
[PATCH net] virtio-net: validate features during probe
This patch validates feature dependencies during probe and fail the probing if a dependency is missed. This fixes the issues of hitting BUG() when qemu fails to advertise features correctly. One example is booting guest with ctrl_vq=off through qemu. Cc: Rusty Russell <rusty at rustcorp.com.au> Cc: Michael S. Tsirkin <mst at redhat.com> Cc: Cornelia Huck <cornelia.huck at
2014 Nov 19
0
[PATCH net] virtio-net: validate features during probe
...kin <mst at redhat.com> --- diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 26e1330..7a7d1a3 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1673,6 +1673,21 @@ static const struct attribute_group virtio_net_mrg_rx_group = { }; #endif +bool __virtnet_fail_on_feature(struct virtio_device *vdev, unsigned int fbit, + const char *fname) +{ + if (!virtio_has_feature(vdev, fbit)) + return false; + + dev_err(&dev->dev, "missing requirements for feature bit %d: %s\n", + fbit, fname); + + return true; +} + +#define VIRTNET_FAIL_ON(vde...
2014 Nov 19
0
[PATCH net] virtio-net: validate features during probe
...ers/net/virtio_net.c > > index 26e1330..7a7d1a3 100644 > > --- a/drivers/net/virtio_net.c > > +++ b/drivers/net/virtio_net.c > > @@ -1673,6 +1673,21 @@ static const struct attribute_group virtio_net_mrg_rx_group = { > > }; > > #endif > > > > +bool __virtnet_fail_on_feature(struct virtio_device *vdev, unsigned int fbit, > > + const char *fname) > > +{ > > + if (!virtio_has_feature(vdev, fbit)) > > + return false; > > + > > + dev_err(&dev->dev, "missing requirements for feature bit %d: %s\n", > &g...