diff options
author | Shijith Thotton <sthotton@marvell.com> | 2022-04-21 15:33:43 +0530 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-20 09:29:57 +0300 |
commit | a7790fdb6cde1c537f28b84423213a6fdec526a3 (patch) | |
tree | 88e3f3c9ea9183d6e5950dec94dede2c26115bfd /test | |
parent | 27c4310add4994e56881e9daea831f0e5089b85b (diff) |
test: l2fwd: inline fast path functions
Inlined functions used in fast path to improve forwarding performance.
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/performance/odp_l2fwd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 1833dcf78..f4c4084ce 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -345,7 +345,8 @@ static inline int copy_packets(odp_packet_t *pkt_tbl, int pkts) /* * Return number of packets remaining in the pkt_tbl */ -static int process_extra_features(odp_packet_t *pkt_tbl, int pkts, stats_t *stats) +static inline int process_extra_features(odp_packet_t *pkt_tbl, int pkts, + stats_t *stats) { if (odp_unlikely(gbl_args->appl.extra_feat)) { if (gbl_args->appl.packet_copy) { @@ -376,12 +377,12 @@ static int process_extra_features(odp_packet_t *pkt_tbl, int pkts, stats_t *stat return pkts; } -static void send_packets(odp_packet_t *pkt_tbl, - int pkts, - int use_event_queue, - odp_queue_t tx_queue, - odp_pktout_queue_t pktout_queue, - stats_t *stats) +static inline void send_packets(odp_packet_t *pkt_tbl, + int pkts, + int use_event_queue, + odp_queue_t tx_queue, + odp_pktout_queue_t pktout_queue, + stats_t *stats) { int sent; unsigned int tx_drops; |