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") \ |
Damjan Marion | 69768d9 | 2023-11-13 17:33:32 +0000 | [diff] [blame] | 17 | _ (INVALID_ARG, "invalid argument") \ |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 18 | _ (INVALID_BUS, "invalid bus") \ |
| 19 | _ (INVALID_DATA, "invalid data") \ |
| 20 | _ (INVALID_DEVICE_ID, "invalid device id") \ |
| 21 | _ (INVALID_NUM_RX_QUEUES, "invalid number of rx queues") \ |
| 22 | _ (INVALID_NUM_TX_QUEUES, "invalid number of tx queues") \ |
| 23 | _ (INVALID_PORT_ID, "invalid port id") \ |
| 24 | _ (INVALID_RX_QUEUE_SIZE, "invalid rx queue size") \ |
| 25 | _ (INVALID_TX_QUEUE_SIZE, "invalid tx queue size") \ |
| 26 | _ (INVALID_VALUE, "invalid value") \ |
| 27 | _ (INTERNAL, "internal error") \ |
| 28 | _ (NOT_FOUND, "not found") \ |
| 29 | _ (NOT_READY, "not ready") \ |
| 30 | _ (NOT_SUPPORTED, "not supported") \ |
| 31 | _ (NO_CHANGE, "no change") \ |
| 32 | _ (NO_AVAIL_QUEUES, "no queues available") \ |
| 33 | _ (NO_SUCH_ENTRY, "no such enty") \ |
| 34 | _ (PORT_STARTED, "port started") \ |
| 35 | _ (PROCESS_REPLY, "dev process reply error") \ |
| 36 | _ (RESOURCE_NOT_AVAILABLE, "resource not available") \ |
| 37 | _ (TIMEOUT, "timeout") \ |
Damjan Marion | ddf6cec | 2023-11-22 16:25:55 +0000 | [diff] [blame] | 38 | _ (UNKNOWN_DEVICE, "unknown device") \ |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 39 | _ (UNKNOWN_INTERFACE, "unknown interface") \ |
| 40 | _ (UNSUPPORTED_CONFIG, "unsupported config") \ |
| 41 | _ (UNSUPPORTED_DEVICE, "unsupported device") \ |
Monendra Singh Kushwaha | 4af3fdf | 2024-02-06 14:02:43 +0530 | [diff] [blame^] | 42 | _ (UNSUPPORTED_DEVICE_VER, "unsupported device version") \ |
| 43 | _ (ALREADY_DONE, "already done") \ |
| 44 | _ (NO_SUCH_INTERFACE, "no such interface") |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 45 | |
| 46 | #endif /* _VNET_DEV_ERRORS_H_ */ |