Re: [dpdk-dev] [PATCH] examples/l2fwd: increase pktmbuf pool size

2017-12-28 Thread Pavan Nikhilesh
On Thu, Dec 28, 2017 at 12:36:42PM -0800, Stephen Hemminger wrote: > On Fri, 29 Dec 2017 01:49:06 +0530 > Pavan Nikhilesh wrote: > > > +/* > > + * This expression is used to calculate the number of mbufs needed > > + * depending on user input, taking into account memory for rx and > > + * tx hard

Re: [dpdk-dev] [PATCH] examples/l2fwd: increase pktmbuf pool size

2017-12-28 Thread Stephen Hemminger
On Fri, 29 Dec 2017 01:49:06 +0530 Pavan Nikhilesh wrote: > +/* > + * This expression is used to calculate the number of mbufs needed > + * depending on user input, taking into account memory for rx and > + * tx hardware rings, cache per lcore and mbuf pkt burst per port > + * per lcore. RTE_MAX

[dpdk-dev] [PATCH] examples/l2fwd: increase pktmbuf pool size

2017-12-28 Thread Pavan Nikhilesh
Make pktmbuf pool size a function of ports and lcores detected instead of using constant 8192. Signed-off-by: Pavan Nikhilesh --- Check patch generates warning `Unnecessary typecast of c90 int constant` but it is needed to make compiler happy (generates error comparison between signed and uns