search for: eth_test_fl_fail

Displaying 5 results from an estimated 5 matches for "eth_test_fl_fail".

Did you mean: eth_test_fl_failed
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...rtnet_info *vi = netdev_priv(netdev); + + memset(data, 0, sizeof(u64) * VIRTNET_NUM_TEST); + if (netif_running(netdev)) { + set_bit(__VIRTNET_TESTING, &vi->flags); + if (eth_test->flags == ETH_TEST_FL_OFFLINE) { + if (virtnet_loopback_test(vi, &data[0])) + eth_test->flags |= ETH_TEST_FL_FAILED; + if (virtnet_feature_neg_test(vi, &data[1])) + eth_test->flags |= ETH_TEST_FL_FAILED; + if (virtnet_reset(vi, &data[2])) + eth_test->flags |= ETH_TEST_FL_FAILED; + } + clear_bit(__VIRTNET_TESTING, &vi->flags); + } else { + dev_warn(&vi->dev->dev, +...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...rtnet_info *vi = netdev_priv(netdev); + + memset(data, 0, sizeof(u64) * VIRTNET_NUM_TEST); + if (netif_running(netdev)) { + set_bit(__VIRTNET_TESTING, &vi->flags); + if (eth_test->flags == ETH_TEST_FL_OFFLINE) { + if (virtnet_loopback_test(vi, &data[0])) + eth_test->flags |= ETH_TEST_FL_FAILED; + if (virtnet_feature_neg_test(vi, &data[1])) + eth_test->flags |= ETH_TEST_FL_FAILED; + if (virtnet_reset(vi, &data[2])) + eth_test->flags |= ETH_TEST_FL_FAILED; + } + clear_bit(__VIRTNET_TESTING, &vi->flags); + } else { + dev_warn(&vi->dev->dev, +...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
...ning(netdev); + + set_bit(__VIRTNET_TESTING, &vi->flags); + memset(data, 0, sizeof(u64) * VIRTNET_NUM_TEST); + + if (eth_test->flags == ETH_TEST_FL_OFFLINE) { + if (!if_running) { + dev_warn(&vi->dev->dev, "Failed to execute self test.\n"); + eth_test->flags |= ETH_TEST_FL_FAILED; + return; + } + if (virtnet_loopback_test(vi, &data[VIRTNET_LOOPBACK_TEST])) + eth_test->flags |= ETH_TEST_FL_FAILED; + virtnet_feature_neg_test(vi); + virtnet_reset(vi); + } + clear_bit(__VIRTNET_TESTING, &vi->flags); +} + static const struct ethtool_ops virtnet_ethtool_o...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
...ning(netdev); + + set_bit(__VIRTNET_TESTING, &vi->flags); + memset(data, 0, sizeof(u64) * VIRTNET_NUM_TEST); + + if (eth_test->flags == ETH_TEST_FL_OFFLINE) { + if (!if_running) { + dev_warn(&vi->dev->dev, "Failed to execute self test.\n"); + eth_test->flags |= ETH_TEST_FL_FAILED; + return; + } + if (virtnet_loopback_test(vi, &data[VIRTNET_LOOPBACK_TEST])) + eth_test->flags |= ETH_TEST_FL_FAILED; + virtnet_feature_neg_test(vi); + virtnet_reset(vi); + } + clear_bit(__VIRTNET_TESTING, &vi->flags); +} + static const struct ethtool_ops virtnet_ethtool_o...
2014 Aug 27
0
[PATCH 1/1] add selftest for virtio-net
...RTNET_TESTING, &vi->flags); > + memset(data, 0, sizeof(u64) * VIRTNET_NUM_TEST); > + > + if (eth_test->flags == ETH_TEST_FL_OFFLINE) { > + if (!if_running) { > + dev_warn(&vi->dev->dev, "Failed to execute self test.\n"); > + eth_test->flags |= ETH_TEST_FL_FAILED; > + return; > + } > + if (virtnet_loopback_test(vi, &data[VIRTNET_LOOPBACK_TEST])) > + eth_test->flags |= ETH_TEST_FL_FAILED; > + virtnet_feature_neg_test(vi); > + virtnet_reset(vi); > + } > + clear_bit(__VIRTNET_TESTING, &vi->flags); > +} > +...