From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] mbuf: remove redundant line in rte_pktmbuf_attach Date: Tue, 24 Jan 2017 13:56:27 +0100 Message-ID: <20170124135627.7ab3d703@glumotte.dev.6wind.com> References: <7181C1FE-0FB9-4FB8-9A12-08AB4506880E@gmail.com> <37EFD294-2DEE-4140-9A74-423429B82B02@gmail.com> <2601191342CEEE43887BDE71AB9772583F10925D@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Ilya Matveychikov , "Yigit, Ferruh" , "dev@dpdk.org" To: "Ananyev, Konstantin" Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 6034D108D for ; Tue, 24 Jan 2017 13:56:34 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id c85so180163834wmi.1 for ; Tue, 24 Jan 2017 04:56:34 -0800 (PST) In-Reply-To: <2601191342CEEE43887BDE71AB9772583F10925D@irsmsx105.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, On Sat, 21 Jan 2017 16:28:29 +0000, "Ananyev, Konstantin" wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ilya > > Matveychikov Sent: Saturday, January 21, 2017 3:08 PM > > To: Yigit, Ferruh > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH] mbuf: remove redundant line in > > rte_pktmbuf_attach > >=20 > > =20 > > > On Jan 20, 2017, at 4:08 PM, Ferruh Yigit > > > wrote: > > > > > > On 1/20/2017 12:19 AM, Ilya Matveychikov wrote: =20 > > >> mi->next will be assigned to NULL few lines later, trivial patch > > >> > > >> Signed-off-by: Ilya V. Matveychikov > > >> --- > > >> lib/librte_mbuf/rte_mbuf.h | 1 - > > >> 1 file changed, 1 deletion(-) > > >> > > >> diff --git a/lib/librte_mbuf/rte_mbuf.h > > >> b/lib/librte_mbuf/rte_mbuf.h index ead7c6e..5589d54 100644 > > >> --- a/lib/librte_mbuf/rte_mbuf.h > > >> +++ b/lib/librte_mbuf/rte_mbuf.h > > >> @@ -1139,7 +1139,6 @@ static inline void > > >> rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *m) > > >> mi->buf_addr =3D m->buf_addr; mi->buf_len =3D m->buf_len; > > >> > > >> - mi->next =3D m->next; =20 > > > Fixes: ea672a8b1655 ("mbuf: remove the rte_pktmbuf structure") Acked-by: Olivier Matz > > > Do you know why attaching mbuf is not supporting multi-segment? =20 >=20 > This is supported, but you have to do it segment by segment. > Actually rte_pktmbuf_clone() does that. > Konstantin >=20 >=20 > > > Perhaps this can be documented in function comment, as one of the > > > "not supported" items. =20 > >=20 > > No, I don=E2=80=99t know. For my application I=E2=80=99ve found that nb= _segs with > > it=E2=80=99s limit in 256 segments is very annoying and I=E2=80=99ve de= cided not to > > use DPDK functions that dealt with nb_segs=E2=80=A6 But it is not about= the > > rte_pktmbuf_attach() function and the patch.=20 Out of curiosity, can you explain why your application needs more than 256 segments? When we were discussing the possibility of extending this field to 16 bits, Konstantin convinced me that it was not so useful. Thanks, Olivier