| 2049 | #define VIRTIO_ARG_VECTORIZED "vectorized" |
| 2050 | |
| 2051 | static int |
| 2052 | link_speed_handler(const char *key __rte_unused, |
| 2053 | const char *value, void *ret_val) |
| 2054 | { |
| 2055 | uint32_t val; |
| 2056 | if (!value || !ret_val) |
| 2057 | return -EINVAL; |
| 2058 | val = strtoul(value, NULL, 0); |
| 2059 | /* validate input */ |
| 2060 | if (virtio_dev_speed_capa_get(val) == 0) |
| 2061 | return -EINVAL; |
| 2062 | *(uint32_t *)ret_val = val; |
| 2063 | |
| 2064 | return 0; |
| 2065 | } |
| 2066 | |
| 2067 | |
| 2068 | static int |
nothing calls this directly
no test coverage detected