Skip to content

Commit 4e9c1c8

Browse files
committed
refactor: simplify packet classification by removing conditional logic in bulk processing
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
1 parent 54d7cad commit 4e9c1c8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/pktgen.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -723,12 +723,6 @@ pktgen_packet_classify(struct rte_mbuf *m, int pid, int qid)
723723
static inline void
724724
pktgen_packet_classify_bulk(struct rte_mbuf **pkts, int nb_rx, int pid, int qid)
725725
{
726-
#if 1
727-
int i;
728-
729-
for (i = 0; i < nb_rx; i++)
730-
pktgen_packet_classify(pkts[i], pid, qid);
731-
#else
732726
int j, i;
733727

734728
/* Prefetch first packets */
@@ -746,7 +740,6 @@ pktgen_packet_classify_bulk(struct rte_mbuf **pkts, int nb_rx, int pid, int qid)
746740
/* Handle remaining prefetched packets */
747741
for (; i < nb_rx; i++)
748742
pktgen_packet_classify(pkts[i], pid, qid);
749-
#endif
750743
}
751744

752745
/**

0 commit comments

Comments
 (0)