search for: __virtnet_testing

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

2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
.../busy_poll.h> +#include <linux/pci.h> static int napi_weight = NAPI_POLL_WEIGHT; module_param(napi_weight, int, 0444); @@ -51,6 +52,23 @@ 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 + +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] = { "neg...
2014 Aug 27
2
[PATCH 1/1] add selftest for virtio-net
.../busy_poll.h> +#include <linux/pci.h> static int napi_weight = NAPI_POLL_WEIGHT; module_param(napi_weight, int, 0444); @@ -51,6 +52,23 @@ 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 + +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] = { "neg...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
.../busy_poll.h> +#include <linux/pci.h> static int napi_weight = NAPI_POLL_WEIGHT; 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)...
2014 Sep 05
1
[PATCH 1/1] add selftest for virtio-net v1.0
.../busy_poll.h> +#include <linux/pci.h> static int napi_weight = NAPI_POLL_WEIGHT; 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)...
2014 Aug 27
0
[PATCH 1/1] add selftest for virtio-net
....h> > > static int napi_weight = NAPI_POLL_WEIGHT; > module_param(napi_weight, int, 0444); > @@ -51,6 +52,23 @@ 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 > + 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] = { "...