Skip to content

Commit

Permalink
Test if perf drop is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin De Vierno committed Jun 11, 2020
1 parent 903e239 commit 1425ee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onvm/onvm_nflib/onvm_pkt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ onvm_pkt_process_tx_batch(struct queue_mgr *tx_mgr, struct rte_mbuf *pkts[], uin
nf->stats.act_tonf++;
onvm_pkt_enqueue_nf(tx_mgr, meta->destination, pkts[i], nf);
} else if (meta->action == ONVM_NF_ACTION_OUT) {
if (tx_mgr->mgr_type_t == MGR) {
onvm_pkt_enqueue_port(tx_mgr, meta->destination, pkts[i]);
} else {
if (tx_mgr->mgr_type_t != MGR) {
nf->stats.act_out++;
out_buf = tx_mgr->to_tx_buf;
out_buf->buffer[out_buf->count++] = pkts[i];
if (out_buf->count == PACKET_READ_SIZE) {
onvm_pkt_enqueue_tx_thread(out_buf, nf);
}
} else {
onvm_pkt_enqueue_port(tx_mgr, meta->destination, pkts[i]);
}
} else {
printf("ERROR invalid action : this shouldn't happen.\n");
Expand Down

0 comments on commit 1425ee4

Please sign in to comment.