Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * Copyright (c) 2023 Cisco Systems, Inc. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _VNET_DEV_ERRORS_H_ |
| 6 | #define _VNET_DEV_ERRORS_H_ |
| 7 | |
| 8 | #define foreach_vnet_dev_rv_type \ |
| 9 | _ (ALREADY_EXISTS, "already exists") \ |
| 10 | _ (ALREADY_IN_USE, "already in use") \ |
| 11 | _ (BUFFER_ALLOC_FAIL, "packet buffer allocation failure") \ |
| 12 | _ (BUG, "bug") \ |
| 13 | _ (BUS, "bus error") \ |
| 14 | _ (DEVICE_NO_REPLY, "no reply from device") \ |
| 15 | _ (DMA_MEM_ALLOC_FAIL, "DMA memory allocation error") \ |
| 16 | _ (DRIVER_NOT_AVAILABLE, "driver not available") \ |
| 17 | _ (INVALID_BUS, "invalid bus") \ |
| 18 | _ (INVALID_DATA, "invalid data") \ |
| 19 | _ (INVALID_DEVICE_ID, "invalid device id") \ |
| 20 | _ (INVALID_NUM_RX_QUEUES, "invalid number of rx queues") \ |
| 21 | _ (INVALID_NUM_TX_QUEUES, "invalid number of tx queues") \ |
| 22 | _ (INVALID_PORT_ID, "invalid port id") \ |
| 23 | _ (INVALID_RX_QUEUE_SIZE, "invalid rx queue size") \ |
| 24 | _ (INVALID_TX_QUEUE_SIZE, "invalid tx queue size") \ |
| 25 | _ (INVALID_VALUE, "invalid value") \ |
| 26 | _ (INTERNAL, "internal error") \ |
| 27 | _ (NOT_FOUND, "not found") \ |
| 28 | _ (NOT_READY, "not ready") \ |
| 29 | _ (NOT_SUPPORTED, "not supported") \ |
| 30 | _ (NO_CHANGE, "no change") \ |
| 31 | _ (NO_AVAIL_QUEUES, "no queues available") \ |
| 32 | _ (NO_SUCH_ENTRY, "no such enty") \ |
| 33 | _ (PORT_STARTED, "port started") \ |
| 34 | _ (PROCESS_REPLY, "dev process reply error") \ |
| 35 | _ (RESOURCE_NOT_AVAILABLE, "resource not available") \ |
| 36 | _ (TIMEOUT, "timeout") \ |
| 37 | _ (UNKNOWN_INTERFACE, "unknown interface") \ |
| 38 | _ (UNSUPPORTED_CONFIG, "unsupported config") \ |
| 39 | _ (UNSUPPORTED_DEVICE, "unsupported device") \ |
| 40 | _ (UNSUPPORTED_DEVICE_VER, "unsupported device version") |
| 41 | |
| 42 | #endif /* _VNET_DEV_ERRORS_H_ */ |