X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fpg%2Finput.c;h=c47dfe270e7867dfa91945bea3f5d827f6bf06a4;hb=87d7bac5cf2ebdc7820e1edaadc2cc3b6d111cf2;hp=39aea7c3c5a160ff7f1f6487f930234ff3d97b36;hpb=7ca5aaac10e95306f74ea4afd52110dd46aa0381;p=vpp.git diff --git a/src/vnet/pg/input.c b/src/vnet/pg/input.c index 39aea7c3c5a..c47dfe270e7 100644 --- a/src/vnet/pg/input.c +++ b/src/vnet/pg/input.c @@ -1762,8 +1762,8 @@ pg_input_stream (vlib_node_runtime_t * node, pg_main_t * pg, pg_stream_t * s) n_packets = s->n_packets_limit - s->n_packets_generated; /* Generate up to one frame's worth of packets. */ - if (n_packets > VLIB_FRAME_SIZE) - n_packets = VLIB_FRAME_SIZE; + if (n_packets > s->n_max_frame) + n_packets = s->n_max_frame; if (n_packets > 0) n_packets = pg_generate_packets (node, pg, s, n_packets);