X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fsoftnic%2Frte_eth_softnic_swq.c;h=afe6f05e29c52909b43a29808f10d5dde33b005f;hb=7be78d027918dbc846e502780faf94d5acdf5f75;hp=1944fbbfd68280346a836f0171828bf916815da6;hpb=bef50bcb1c47434dcde2e96804f5dfcf676bd443;p=dpdk.git diff --git a/drivers/net/softnic/rte_eth_softnic_swq.c b/drivers/net/softnic/rte_eth_softnic_swq.c index 1944fbbfd6..afe6f05e29 100644 --- a/drivers/net/softnic/rte_eth_softnic_swq.c +++ b/drivers/net/softnic/rte_eth_softnic_swq.c @@ -6,6 +6,7 @@ #include #include +#include #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) { - 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;