Message ID | 1435850194-7024-8-git-send-email-john.mcnamara@intel.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 2474A5A87; Thu, 2 Jul 2015 17:17:12 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 280615A6F for <dev@dpdk.org>; Thu, 2 Jul 2015 17:17:09 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 02 Jul 2015 08:16:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,393,1432623600"; d="scan'208";a="757292962" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2015 08:16:52 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t62FGpT6018936; Thu, 2 Jul 2015 16:16:51 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t62FGp1o007116; Thu, 2 Jul 2015 16:16:51 +0100 Received: (from jmcnam2x@localhost) by sivswdev02.ir.intel.com with id t62FGpAm007112; Thu, 2 Jul 2015 16:16:51 +0100 From: John McNamara <john.mcnamara@intel.com> To: dev@dpdk.org Date: Thu, 2 Jul 2015 16:16:34 +0100 Message-Id: <1435850194-7024-8-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1435850194-7024-1-git-send-email-john.mcnamara@intel.com> References: <1435585344-26652-1-git-send-email-john.mcnamara@intel.com> <1435850194-7024-1-git-send-email-john.mcnamara@intel.com> Subject: [dpdk-dev] [PATCH v3 7/7] abi: announce mbuf addition for ieee1588 in DPDK 2.2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Mcnamara, John
July 2, 2015, 3:16 p.m. UTC
Add announcement of a dedicated additional field in the mbuf
to support ieee1588 in DPDK 2.2.
Signed-off-by: John McNamara <john.mcnamara@intel.com>
---
doc/guides/rel_notes/abi.rst | 5 +++++
1 file changed, 5 insertions(+)
Comments
2015-07-02 16:16, John McNamara: > --- a/doc/guides/rel_notes/abi.rst > +++ b/doc/guides/rel_notes/abi.rst > Deprecation Notices > ------------------- > + > +* In DPDK 2.1 the IEEE1588/802.1AS support in the i40e driver makes use of the > + ``udata64`` field in the mbuf to pass the timesync register index to the > + user. In DPDK 2.2 this will be moved to a new field in the mbuf. We need more acknowledgements for this decision, as stated here: http://dpdk.org/browse/dpdk/tree/doc/guides/guidelines/versioning.rst#n51
On Mon, Jul 06, 2015 at 03:16:01PM +0200, Thomas Monjalon wrote: > 2015-07-02 16:16, John McNamara: > > --- a/doc/guides/rel_notes/abi.rst > > +++ b/doc/guides/rel_notes/abi.rst > > Deprecation Notices > > ------------------- > > + > > +* In DPDK 2.1 the IEEE1588/802.1AS support in the i40e driver makes use of the > > + ``udata64`` field in the mbuf to pass the timesync register index to the > > + user. In DPDK 2.2 this will be moved to a new field in the mbuf. > > We need more acknowledgements for this decision, as stated here: > http://dpdk.org/browse/dpdk/tree/doc/guides/guidelines/versioning.rst#n51 Why can't this new field just be added at the end of cache line 1 (the second cache line) of the mbuf? That would avoid any ABI breakage and would mean we can just put the change in in this release, instead of waiting. /Bruce
2015-07-08 14:10, Bruce Richardson: > On Mon, Jul 06, 2015 at 03:16:01PM +0200, Thomas Monjalon wrote: > > 2015-07-02 16:16, John McNamara: > > > --- a/doc/guides/rel_notes/abi.rst > > > +++ b/doc/guides/rel_notes/abi.rst > > > Deprecation Notices > > > ------------------- > > > + > > > +* In DPDK 2.1 the IEEE1588/802.1AS support in the i40e driver makes use of the > > > + ``udata64`` field in the mbuf to pass the timesync register index to the > > > + user. In DPDK 2.2 this will be moved to a new field in the mbuf. > > > > We need more acknowledgements for this decision, as stated here: > > http://dpdk.org/browse/dpdk/tree/doc/guides/guidelines/versioning.rst#n51 > > Why can't this new field just be added at the end of cache line 1 (the second > cache line) of the mbuf? That would avoid any ABI breakage and would mean we > can just put the change in in this release, instead of waiting. Are you sure that (because of __rte_cache_aligned) the size of the structure is never increased with this new field? Please confirm your opinion. A comment to explain ABI compatibility in the commit message of the v4 is also welcome.
On Thu, Jul 09, 2015 at 05:51:16PM +0200, Thomas Monjalon wrote: > 2015-07-08 14:10, Bruce Richardson: > > On Mon, Jul 06, 2015 at 03:16:01PM +0200, Thomas Monjalon wrote: > > > 2015-07-02 16:16, John McNamara: > > > > --- a/doc/guides/rel_notes/abi.rst > > > > +++ b/doc/guides/rel_notes/abi.rst > > > > Deprecation Notices > > > > ------------------- > > > > + > > > > +* In DPDK 2.1 the IEEE1588/802.1AS support in the i40e driver makes use of the > > > > + ``udata64`` field in the mbuf to pass the timesync register index to the > > > > + user. In DPDK 2.2 this will be moved to a new field in the mbuf. > > > > > > We need more acknowledgements for this decision, as stated here: > > > http://dpdk.org/browse/dpdk/tree/doc/guides/guidelines/versioning.rst#n51 > > > > Why can't this new field just be added at the end of cache line 1 (the second > > cache line) of the mbuf? That would avoid any ABI breakage and would mean we > > can just put the change in in this release, instead of waiting. > > Are you sure that (because of __rte_cache_aligned) the size of the structure > is never increased with this new field? > Please confirm your opinion. This is checked at compile time by the test app. 930 static int 931 test_mbuf(void) 932 { 933 RTE_BUILD_BUG_ON(sizeof(struct rte_mbuf) != RTE_CACHE_LINE_SIZE * 2); .... So if a change does result in an increase the mbuf size, by causing overflow in either the first or the second cache line, we will get compiler errors in the build because of it. Therefore, such changes are pretty easy to test by compiling up on our supported targets. /Bruce
diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index f00a6ee..51dacb2 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/rel_notes/abi.rst @@ -38,3 +38,8 @@ Examples of Deprecation Notices Deprecation Notices ------------------- + +* In DPDK 2.1 the IEEE1588/802.1AS support in the i40e driver makes use of the + ``udata64`` field in the mbuf to pass the timesync register index to the + user. In DPDK 2.2 this will be moved to a new field in the mbuf. +