Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-303 - Documentation changes for vnet/vnet/sr
[vpp.git]
/
vnet
/
vnet
/
sr
/
sr_replicate.c
diff --git
a/vnet/vnet/sr/sr_replicate.c
b/vnet/vnet/sr/sr_replicate.c
index
4711ff1
..
37c3944
100644
(file)
--- 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")
_(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,
typedef enum
{
#define _(sym,str) SR_REPLICATE_ERROR_##sym,
@@
-113,6
+116,9
@@
typedef enum
SR_REPLICATE_N_ERROR,
} sr_replicate_error_t;
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
static char *sr_replicate_error_strings[] = {
#define _(sym,string) string,
foreach_sr_replicate_error