Hi > -----Original Message----- > From: Parthasarathy, JananeeX M > Sent: Monday, July 16, 2018 5:01 PM > To: [email protected] > Cc: Horton, Remy <[email protected]>; Pattan, Reshma > <[email protected]>; Parthasarathy, JananeeX M > <[email protected]>; Chaitanya Babu, TalluriX > <[email protected]> > Subject: [PATCH v3] test: add sample functions for packet forwarding > > Add sample test functions for packet forwarding. > These can be used for unit test cases for LatencyStats and BitrateStats > libraries. > > Signed-off-by: Chaitanya Babu Talluri <[email protected]> > Reviewed-by: Reshma Pattan <[email protected]> > --- > + */ > +/* Sample test to forward packets using virtual portids */ int > +test_packet_forward(void) > +{ > + struct rte_mbuf *pbuf[NUM_PACKETS]; > + > + mp = rte_pktmbuf_pool_create("mbuf_pool", NB_MBUF, 32, 0, > + RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); > + if (mp == NULL) > + return -1;
Instead of return -1 , please return TEST_FAILED, that seems to be the correct way as autotest expects TEST_SUCESS or TEST_FAILED from the test result. Rest of the code looks ok, I am done with the review. In next patch version don't forget to add my Ack. Acked-by: Reshma Pattan <[email protected]>

