Re: [vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Prashant Upadhyaya
s.fd.io On Behalf Of Prashant > Upadhyaya > Sent: Friday, November 2, 2018 12:54 PM > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Regarding vlib_buffer_alloc > > Hi, > > When I allocate a buffer using the vlib_buffer_alloc, are the fields in the > vlib_buffer_t guaranteed

Re: [vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Dave Barach via Lists.Fd.Io
See also https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#creating-packets-from-scratch -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Friday, November 2, 2018 12:54 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev

[vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Prashant Upadhyaya
Hi, When I allocate a buffer using the vlib_buffer_alloc, are the fields in the vlib_buffer_t guaranteed to be properly initialized (eg. with all zero values) or is there any obligation on the caller to initialize these because the values may be unpredictable ? Regards -Prashant