Displaying 5 results from an estimated 5 matches for "virtnet_gstrings_test".
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
...444);
#define MERGEABLE_BUFFER_ALIGN max(L1_CACHE_BYTES, 256)
#define VIRTNET_DRIVER_VERSION "1.0.0"
+#define __VIRTNET_TESTING 0
+
+enum {
+ VIRTNET_LOOPBACK_TEST,
+ VIRTNET_FEATURE_NEG_TEST,
+ VIRTNET_RESET_TEST,
+};
+
+static const struct {
+ const char string[ETH_GSTRING_LEN];
+} virtnet_gstrings_test[] = {
+ [VIRTNET_LOOPBACK_TEST] = { "loopback test (offline)" },
+ [VIRTNET_FEATURE_NEG_TEST] = { "negotiate test (offline)" },
+ [VIRTNET_RESET_TEST] = { "reset test (offline)" },
+};
+
+#define VIRTNET_NUM_TEST ARRAY_SIZE(virtnet_gstrings_test)
struct virtn...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
...444);
#define MERGEABLE_BUFFER_ALIGN max(L1_CACHE_BYTES, 256)
#define VIRTNET_DRIVER_VERSION "1.0.0"
+#define __VIRTNET_TESTING 0
+
+enum {
+ VIRTNET_LOOPBACK_TEST,
+ VIRTNET_FEATURE_NEG_TEST,
+ VIRTNET_RESET_TEST,
+};
+
+static const struct {
+ const char string[ETH_GSTRING_LEN];
+} virtnet_gstrings_test[] = {
+ [VIRTNET_LOOPBACK_TEST] = { "loopback test (offline)" },
+ [VIRTNET_FEATURE_NEG_TEST] = { "negotiate test (offline)" },
+ [VIRTNET_RESET_TEST] = { "reset test (offline)" },
+};
+
+#define VIRTNET_NUM_TEST ARRAY_SIZE(virtnet_gstrings_test)
struct virtn...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...IGHT;
module_param(napi_weight, int, 0444);
@@ -51,6 +52,17 @@ module_param(gso, bool, 0444);
#define MERGEABLE_BUFFER_ALIGN max(L1_CACHE_BYTES, 256)
#define VIRTNET_DRIVER_VERSION "1.0.0"
+#define __VIRTNET_TESTING 0
+
+static const struct {
+ const char string[ETH_GSTRING_LEN];
+} virtnet_gstrings_test[] = {
+ { "loopback test (offline)" },
+ { "negotiate test (offline)" },
+ { "reset test (offline)" },
+};
+
+#define VIRTNET_NUM_TEST ARRAY_SIZE(virtnet_gstrings_test)
struct virtnet_stats {
struct u64_stats_sync tx_syncp;
@@ -104,6 +116,8 @@ struct virtne...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
...IGHT;
module_param(napi_weight, int, 0444);
@@ -51,6 +52,17 @@ module_param(gso, bool, 0444);
#define MERGEABLE_BUFFER_ALIGN max(L1_CACHE_BYTES, 256)
#define VIRTNET_DRIVER_VERSION "1.0.0"
+#define __VIRTNET_TESTING 0
+
+static const struct {
+ const char string[ETH_GSTRING_LEN];
+} virtnet_gstrings_test[] = {
+ { "loopback test (offline)" },
+ { "negotiate test (offline)" },
+ { "reset test (offline)" },
+};
+
+#define VIRTNET_NUM_TEST ARRAY_SIZE(virtnet_gstrings_test)
struct virtnet_stats {
struct u64_stats_sync tx_syncp;
@@ -104,6 +116,8 @@ struct virtne...
2014 Aug 27
0
[PATCH 1/1] add selftest for virtio-net
...TNET_DRIVER_VERSION "1.0.0"
> +#define __VIRTNET_TESTING 0
> +
Why need this marco?
> +enum {
> + VIRTNET_LOOPBACK_TEST,
> + VIRTNET_FEATURE_NEG_TEST,
> + VIRTNET_RESET_TEST,
> +};
> +
> +static const struct {
> + const char string[ETH_GSTRING_LEN];
> +} virtnet_gstrings_test[] = {
> + [VIRTNET_LOOPBACK_TEST] = { "loopback test (offline)" },
> + [VIRTNET_FEATURE_NEG_TEST] = { "negotiate test (offline)" },
> + [VIRTNET_RESET_TEST] = { "reset test (offline)" },
> +};
> +
> +#define VIRTNET_NUM_TEST ARRAY_SIZE(virtnet_...