Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Imported Upstream version 16.11.2
[deb_dpdk.git]
/
drivers
/
net
/
thunderx
/
base
/
nicvf_bsvf.c
diff --git
a/drivers/net/thunderx/base/nicvf_bsvf.c
b/drivers/net/thunderx/base/nicvf_bsvf.c
index
9e028a3
..
49a2646
100644
(file)
--- a/
drivers/net/thunderx/base/nicvf_bsvf.c
+++ b/
drivers/net/thunderx/base/nicvf_bsvf.c
@@
-37,7
+37,7
@@
#include "nicvf_bsvf.h"
#include "nicvf_plat.h"
#include "nicvf_bsvf.h"
#include "nicvf_plat.h"
-static S
IMPLEQ_HEAD(, svf_entry) head = SIMPLE
Q_HEAD_INITIALIZER(head);
+static S
TAILQ_HEAD(, svf_entry) head = STAIL
Q_HEAD_INITIALIZER(head);
void
nicvf_bsvf_push(struct svf_entry *entry)
void
nicvf_bsvf_push(struct svf_entry *entry)
@@
-45,7
+45,7
@@
nicvf_bsvf_push(struct svf_entry *entry)
assert(entry != NULL);
assert(entry->vf != NULL);
assert(entry != NULL);
assert(entry->vf != NULL);
- S
IMPLE
Q_INSERT_TAIL(&head, entry, next);
+ S
TAIL
Q_INSERT_TAIL(&head, entry, next);
}
struct svf_entry *
}
struct svf_entry *
@@
-53,14
+53,14
@@
nicvf_bsvf_pop(void)
{
struct svf_entry *entry;
{
struct svf_entry *entry;
- assert(!S
IMPLE
Q_EMPTY(&head));
+ assert(!S
TAIL
Q_EMPTY(&head));
- entry = S
IMPLE
Q_FIRST(&head);
+ entry = S
TAIL
Q_FIRST(&head);
assert(entry != NULL);
assert(entry->vf != NULL);
assert(entry != NULL);
assert(entry->vf != NULL);
- S
IMPLE
Q_REMOVE_HEAD(&head, next);
+ S
TAIL
Q_REMOVE_HEAD(&head, next);
return entry;
}
return entry;
}
@@
-68,5
+68,5
@@
nicvf_bsvf_pop(void)
int
nicvf_bsvf_empty(void)
{
int
nicvf_bsvf_empty(void)
{
- return S
IMPLE
Q_EMPTY(&head);
+ return S
TAIL
Q_EMPTY(&head);
}
}