Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
MFIB: recurse resolution through an MFIB entry
[vpp.git]
/
src
/
vnet
/
dpo
/
receive_dpo.c
diff --git
a/src/vnet/dpo/receive_dpo.c
b/src/vnet/dpo/receive_dpo.c
index
83e33ed
..
949dbfa
100644
(file)
--- a/
src/vnet/dpo/receive_dpo.c
+++ b/
src/vnet/dpo/receive_dpo.c
@@
-25,13
+25,19
@@
*/
receive_dpo_t *receive_dpo_pool;
*/
receive_dpo_t *receive_dpo_pool;
+int
+dpo_is_receive (const dpo_id_t *dpo)
+{
+ return (dpo->dpoi_type == DPO_RECEIVE);
+}
+
static receive_dpo_t *
receive_dpo_alloc (void)
{
receive_dpo_t *rd;
pool_get_aligned(receive_dpo_pool, rd, CLIB_CACHE_LINE_BYTES);
static receive_dpo_t *
receive_dpo_alloc (void)
{
receive_dpo_t *rd;
pool_get_aligned(receive_dpo_pool, rd, CLIB_CACHE_LINE_BYTES);
- memset(rd, 0, sizeof(*rd));
+
clib_
memset(rd, 0, sizeof(*rd));
return (rd);
}
return (rd);
}