git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix spelling in comments and strings
[dpdk.git]
/
drivers
/
net
/
softnic
/
rte_eth_softnic_swq.c
diff --git
a/drivers/net/softnic/rte_eth_softnic_swq.c
b/drivers/net/softnic/rte_eth_softnic_swq.c
index
1944fbb
..
afe6f05
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic_swq.c
+++ b/
drivers/net/softnic/rte_eth_softnic_swq.c
@@
-6,6
+6,7
@@
#include <string.h>
#include <rte_string_fns.h>
#include <string.h>
#include <rte_string_fns.h>
+#include <rte_tailq.h>
#include "rte_eth_softnic_internals.h"
#include "rte_eth_softnic_internals.h"
@@
-36,9
+37,9
@@
softnic_swq_free(struct pmd_internals *p)
void
softnic_softnic_swq_free_keep_rxq_txq(struct pmd_internals *p)
{
void
softnic_softnic_swq_free_keep_rxq_txq(struct pmd_internals *p)
{
- struct softnic_swq *swq;
+ struct softnic_swq *swq
, *tswq
;
-
TAILQ_FOREACH(swq, &p->swq_list, node
) {
+
RTE_TAILQ_FOREACH_SAFE(swq, &p->swq_list, node, tswq
) {
if ((strncmp(swq->name, "RXQ", strlen("RXQ")) == 0) ||
(strncmp(swq->name, "TXQ", strlen("TXQ")) == 0))
continue;
if ((strncmp(swq->name, "RXQ", strlen("RXQ")) == 0) ||
(strncmp(swq->name, "TXQ", strlen("TXQ")) == 0))
continue;