From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH 05/13] mbuf: introduce a flag to indicate a control mbuf Date: Mon, 08 Sep 2014 13:53:08 +0200 Message-ID: <540D98A4.7060609@6wind.com> References: <1409759378-10113-1-git-send-email-bruce.richardson@intel.com> <1409759378-10113-6-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: Bruce Richardson , dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1409759378-10113-6-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Bruce, On 09/03/2014 05:49 PM, Bruce Richardson wrote: > Since the flags field is now 64-bits, we can allow one bit to be used to > indicate a control i.e. non-packet mbuf. Dedicate the high bit (bit 63) > for this purpose and add in a utility macro to test if a given mbuf has > the bit set or not. > > Signed-off-by: Bruce Richardson > > [...] > > +/** > + * Tests if an mbuf is a control mbuf > + * > + * @param m > + * The mbuf.to be tested > + * @return > + * - True (1) if the mbuf is a control mbuf > + * - False(0) otherwise > + */ Typo s/mbuf.to/mbuf to/ Acked-by: Olivier Matz