search for: test_status

Displaying 2 results from an estimated 2 matches for "test_status".

Did you mean: pest_status
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...+ *data = virtnet_stop_loopback(vi); +out: + return *data; +} + +static int virtnet_feature_neg_test(struct virtnet_info *vi, u64 *data) +{ + struct virtio_device *dev = vi->vdev; + u8 status; + + status = dev->config->get_status(dev); + if (status & VIRTIO_CONFIG_S_DRIVER_OK) { + u8 test_status = status & ~VIRTIO_CONFIG_S_DRIVER_OK; + + dev->config->set_status(dev, test_status); + } + *data = virtio_feature_negotiate(dev); + dev->config->set_status(dev, status); + return *data; +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset)...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...+ *data = virtnet_stop_loopback(vi); +out: + return *data; +} + +static int virtnet_feature_neg_test(struct virtnet_info *vi, u64 *data) +{ + struct virtio_device *dev = vi->vdev; + u8 status; + + status = dev->config->get_status(dev); + if (status & VIRTIO_CONFIG_S_DRIVER_OK) { + u8 test_status = status & ~VIRTIO_CONFIG_S_DRIVER_OK; + + dev->config->set_status(dev, test_status); + } + *data = virtio_feature_negotiate(dev); + dev->config->set_status(dev, status); + return *data; +} + +static int virtnet_get_sset_count(struct net_device *netdev, int sset) +{ + switch (sset)...