Re: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-21 Thread Stephen Hemminger
On Mon, 21 Oct 2024 02:00:55 + Chaoyong He wrote: > > On Fri, 18 Oct 2024 05:50:20 + > > Chaoyong He wrote: > > > > > > On Fri, 18 Oct 2024 03:21:28 + > > > > Chaoyong He wrote: > > > > > > > > > > RTE_PKTMBUF_HEADROOM); } > > > > > > > + > > > > > > > > > > > > Not sure wh

RE: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-20 Thread Chaoyong He
> On Fri, 18 Oct 2024 05:50:20 + > Chaoyong He wrote: > > > > On Fri, 18 Oct 2024 03:21:28 + > > > Chaoyong He wrote: > > > > > > > > RTE_PKTMBUF_HEADROOM); } > > > > > > + > > > > > > > > > > Not sure why this is needed? What is the problem with the original > code? > > > > > Are you tr

RE: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-17 Thread Chaoyong He
> On Fri, 18 Oct 2024 03:21:28 + > Chaoyong He wrote: > > > > RTE_PKTMBUF_HEADROOM); } > > > > + > > > > > > Not sure why this is needed? What is the problem with the original code? > > > Are you trying to force packets to be segmented? > > > > Actually, we are trying to force packets *not* s

RE: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-17 Thread Chaoyong He
> On Fri, 18 Oct 2024 10:42:53 +0800 > Chaoyong He wrote: > > > From: Long Wu > > > > The previous code used a macro as the data size for mbuf to create the > > mempool and users cannot modify the size. > > > > Now modify the code to support setting the data size of mbuf by > > '--mbuf-size' par

Re: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-17 Thread Stephen Hemminger
On Fri, 18 Oct 2024 10:42:53 +0800 Chaoyong He wrote: > From: Long Wu > > The previous code used a macro as the data size for mbuf > to create the mempool and users cannot modify the size. > > Now modify the code to support setting the data size of > mbuf by '--mbuf-size' parameter. If user do

Re: [PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-17 Thread lihuisong (C)
在 2024/10/18 10:42, Chaoyong He 写道: From: Long Wu The previous code used a macro as the data size for mbuf to create the mempool and users cannot modify the size. Now modify the code to support setting the data size of mbuf by '--mbuf-size' parameter. If user does not add the parameter in star

[PATCH v2] examples/l3fwd: support setting the data size of mbuf

2024-10-17 Thread Chaoyong He
From: Long Wu The previous code used a macro as the data size for mbuf to create the mempool and users cannot modify the size. Now modify the code to support setting the data size of mbuf by '--mbuf-size' parameter. If user does not add the parameter in start command line, the default size is st