aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/sr/sr_replicate.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/sr/sr_replicate.c')
-rw-r--r--vnet/vnet/sr/sr_replicate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vnet/vnet/sr/sr_replicate.c b/vnet/vnet/sr/sr_replicate.c
index 4711ff1a1ed..37c39442efd 100644
--- a/vnet/vnet/sr/sr_replicate.c
+++ b/vnet/vnet/sr/sr_replicate.c
@@ -105,6 +105,9 @@ _(NO_BUFFERS, "error allocating buffers for replicas") \
_(NO_REPLICAS, "no replicas were needed") \
_(NO_BUFFER_DROPS, "sr no buffer drops")
+/**
+ * @brief Struct for SR replicate errors
+ */
typedef enum
{
#define _(sym,str) SR_REPLICATE_ERROR_##sym,
@@ -113,6 +116,9 @@ typedef enum
SR_REPLICATE_N_ERROR,
} sr_replicate_error_t;
+/**
+ * @brief Error strings for SR replicate
+ */
static char *sr_replicate_error_strings[] = {
#define _(sym,string) string,
foreach_sr_replicate_error