* [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
@ 2015-07-16 12:19 Cristian Dumitrescu
2015-07-16 12:25 ` Gajdzica, MaciejX T
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Cristian Dumitrescu @ 2015-07-16 12:19 UTC (permalink / raw)
To: dev
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
doc/guides/rel_notes/abi.rst | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst
index 9e98d62..271e08e 100644
--- a/doc/guides/rel_notes/abi.rst
+++ b/doc/guides/rel_notes/abi.rst
@@ -34,3 +34,15 @@ Deprecation Notices
creates a dummy/empty malloc library to fulfill binaries with dynamic linking
dependencies on librte_malloc.so. Such dummy library will not be created from
release 2.2 so binaries will need to be rebuilt.
+
+* librte_port (rte_port.h): Macros to access the packet meta-data stored within
+ the packet buffer will be adjusted to cover the packet mbuf structure as well,
+ as currently they are able to access any packet buffer location except the
+ packet mbuf structure. The consequence is that applications currently using
+ these macros will have to adjust the value of the offset parameter of these
+ macros by increasing it with sizeof(struc rte_mbuf). The affected macros are:
+ RTE_MBUF_METADATA_UINT<8, 16, 32, 64>_PTR and
+ RTE_MBUF_METADATA_UINT<8, 16, 32, 64>. In terms of code changes, most likely
+ only the definition of RTE_MBUF_METADATA_UINT8_PTR macro will be changed from
+ ``(&((uint8_t *) &(mbuf)[1])[offset])`` to
+ ``(&((uint8_t *) (mbuf))[offset])``.
--
1.7.4.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
2015-07-16 12:19 [dpdk-dev] [PATCH] doc: announce ABI change for librte_port Cristian Dumitrescu
@ 2015-07-16 12:25 ` Gajdzica, MaciejX T
2015-07-16 12:25 ` Thomas Monjalon
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Gajdzica, MaciejX T @ 2015-07-16 12:25 UTC (permalink / raw)
To: Dumitrescu, Cristian, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu
> Sent: Thursday, July 16, 2015 2:20 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
>
>
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
2015-07-16 12:19 [dpdk-dev] [PATCH] doc: announce ABI change for librte_port Cristian Dumitrescu
2015-07-16 12:25 ` Gajdzica, MaciejX T
@ 2015-07-16 12:25 ` Thomas Monjalon
2015-07-16 15:09 ` Dumitrescu, Cristian
2015-07-16 12:30 ` Mrzyglod, DanielX T
2015-07-16 12:49 ` Singh, Jasvinder
3 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2015-07-16 12:25 UTC (permalink / raw)
To: Cristian Dumitrescu; +Cc: dev
2015-07-16 13:19, Cristian Dumitrescu:
> +* librte_port (rte_port.h): Macros to access the packet meta-data stored within
> + the packet buffer will be adjusted to cover the packet mbuf structure as well,
> + as currently they are able to access any packet buffer location except the
> + packet mbuf structure. The consequence is that applications currently using
> + these macros will have to adjust the value of the offset parameter of these
> + macros by increasing it with sizeof(struc rte_mbuf). The affected macros are:
> + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>_PTR and
> + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>. In terms of code changes, most likely
> + only the definition of RTE_MBUF_METADATA_UINT8_PTR macro will be changed from
> + ``(&((uint8_t *) &(mbuf)[1])[offset])`` to
> + ``(&((uint8_t *) (mbuf))[offset])``.
Cristian,
General comment: you are too verbose :)
Specifically on this patch: same comment ;)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
2015-07-16 12:25 ` Thomas Monjalon
@ 2015-07-16 15:09 ` Dumitrescu, Cristian
0 siblings, 0 replies; 6+ messages in thread
From: Dumitrescu, Cristian @ 2015-07-16 15:09 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> Sent: Thursday, July 16, 2015 1:26 PM
> To: Dumitrescu, Cristian
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
>
> 2015-07-16 13:19, Cristian Dumitrescu:
> > +* librte_port (rte_port.h): Macros to access the packet meta-data stored
> within
> > + the packet buffer will be adjusted to cover the packet mbuf structure as
> well,
> > + as currently they are able to access any packet buffer location except the
> > + packet mbuf structure. The consequence is that applications currently
> using
> > + these macros will have to adjust the value of the offset parameter of
> these
> > + macros by increasing it with sizeof(struc rte_mbuf). The affected macros
> are:
> > + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>_PTR and
> > + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>. In terms of code changes,
> most likely
> > + only the definition of RTE_MBUF_METADATA_UINT8_PTR macro will be
> changed from
> > + ``(&((uint8_t *) &(mbuf)[1])[offset])`` to
> > + ``(&((uint8_t *) (mbuf))[offset])``.
>
> Cristian,
> General comment: you are too verbose :)
> Specifically on this patch: same comment ;)
No problem, will simplify and resend. Thanks, Thomas.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
2015-07-16 12:19 [dpdk-dev] [PATCH] doc: announce ABI change for librte_port Cristian Dumitrescu
2015-07-16 12:25 ` Gajdzica, MaciejX T
2015-07-16 12:25 ` Thomas Monjalon
@ 2015-07-16 12:30 ` Mrzyglod, DanielX T
2015-07-16 12:49 ` Singh, Jasvinder
3 siblings, 0 replies; 6+ messages in thread
From: Mrzyglod, DanielX T @ 2015-07-16 12:30 UTC (permalink / raw)
To: Dumitrescu, Cristian, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu
> Sent: Thursday, July 16, 2015 2:20 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
>
>
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> ---
> doc/guides/rel_notes/abi.rst | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst
> index 9e98d62..271e08e 100644
> --- a/doc/guides/rel_notes/abi.rst
> +++ b/doc/guides/rel_notes/abi.rst
> @@ -34,3 +34,15 @@ Deprecation Notices
> creates a dummy/empty malloc library to fulfill binaries with dynamic linking
> dependencies on librte_malloc.so. Such dummy library will not be created from
> release 2.2 so binaries will need to be rebuilt.
> +
> +* librte_port (rte_port.h): Macros to access the packet meta-data stored within
> + the packet buffer will be adjusted to cover the packet mbuf structure as well,
> + as currently they are able to access any packet buffer location except the
> + packet mbuf structure. The consequence is that applications currently using
> + these macros will have to adjust the value of the offset parameter of these
> + macros by increasing it with sizeof(struc rte_mbuf). The affected macros are:
> + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>_PTR and
> + RTE_MBUF_METADATA_UINT<8, 16, 32, 64>. In terms of code changes, most
> likely
> + only the definition of RTE_MBUF_METADATA_UINT8_PTR macro will be
> changed from
> + ``(&((uint8_t *) &(mbuf)[1])[offset])`` to
> + ``(&((uint8_t *) (mbuf))[offset])``.
> --
> 1.7.4.1
> 1.7.4.1
Acked-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
2015-07-16 12:19 [dpdk-dev] [PATCH] doc: announce ABI change for librte_port Cristian Dumitrescu
` (2 preceding siblings ...)
2015-07-16 12:30 ` Mrzyglod, DanielX T
@ 2015-07-16 12:49 ` Singh, Jasvinder
3 siblings, 0 replies; 6+ messages in thread
From: Singh, Jasvinder @ 2015-07-16 12:49 UTC (permalink / raw)
To: Dumitrescu, Cristian, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu
> Sent: Thursday, July 16, 2015 1:20 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port
>
>
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> ---
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-16 15:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 12:19 [dpdk-dev] [PATCH] doc: announce ABI change for librte_port Cristian Dumitrescu
2015-07-16 12:25 ` Gajdzica, MaciejX T
2015-07-16 12:25 ` Thomas Monjalon
2015-07-16 15:09 ` Dumitrescu, Cristian
2015-07-16 12:30 ` Mrzyglod, DanielX T
2015-07-16 12:49 ` Singh, Jasvinder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).