blob: 47e72957da37521584f6e7159fb5f616fb2e2873 [file] [log] [blame]
Damjan Marion38c61912023-10-17 16:06:26 +00001/* 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 Marion69768d92023-11-13 17:33:32 +000017 _ (INVALID_ARG, "invalid argument") \
Damjan Marion38c61912023-10-17 16:06:26 +000018 _ (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 Marionddf6cec2023-11-22 16:25:55 +000038 _ (UNKNOWN_DEVICE, "unknown device") \
Damjan Marion38c61912023-10-17 16:06:26 +000039 _ (UNKNOWN_INTERFACE, "unknown interface") \
40 _ (UNSUPPORTED_CONFIG, "unsupported config") \
41 _ (UNSUPPORTED_DEVICE, "unsupported device") \
42 _ (UNSUPPORTED_DEVICE_VER, "unsupported device version")
43
44#endif /* _VNET_DEV_ERRORS_H_ */