diff options
author | Deepak S <deepak.s@linux.intel.com> | 2019-02-07 10:38:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-02-07 10:38:42 +0000 |
commit | c410fc3bd16046ed9b22c228017b6dea9f7c3f33 (patch) | |
tree | 7154922a19c411df7cf023d5786eb5e848c7a692 /VNFs/DPPD-PROX/packet_utils.c | |
parent | c32ac3003b7c109c6e7cb3f1018ea99821989bf8 (diff) | |
parent | fccce1ef79294066fc7e3dc5b36c5915573d0e47 (diff) |
Merge changes from topic 'fix_non_dataplane_pkt_count'
* changes:
Prevent dropping ARP packets
Do not add count of non dataplane packets to dropped count
Diffstat (limited to 'VNFs/DPPD-PROX/packet_utils.c')
-rw-r--r-- | VNFs/DPPD-PROX/packet_utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/packet_utils.c b/VNFs/DPPD-PROX/packet_utils.c index 6c3da0ec..1b461c65 100644 --- a/VNFs/DPPD-PROX/packet_utils.c +++ b/VNFs/DPPD-PROX/packet_utils.c @@ -334,9 +334,10 @@ void handle_ctrl_plane_pkts(struct task_base *tbase, struct rte_mbuf **mbufs, ui break; case ARP_REPLY_FROM_CTRL: case ARP_REQ_FROM_CTRL: - TASK_STATS_ADD_TX_NON_DP(&tbase->aux->stats, 1); out[0] = 0; - tbase->aux->tx_pkt_l2(tbase, &mbufs[j], 1, out); + // tx_ctrlplane_pkt does not drop packets + tbase->aux->tx_ctrlplane_pkt(tbase, &mbufs[j], 1, out); + TASK_STATS_ADD_TX_NON_DP(&tbase->aux->stats, 1); break; } } |