From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 4C5C92949 for ; Fri, 11 Mar 2016 12:19:19 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id CB4C0C1F62; Fri, 11 Mar 2016 11:19:18 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-5-162.ams2.redhat.com [10.36.5.162]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2BBJHTD008176; Fri, 11 Mar 2016 06:19:18 -0500 To: Helin Zhang , dev@dpdk.org References: <1457627793-8491-1-git-send-email-helin.zhang@intel.com> <1457686179-20435-1-git-send-email-helin.zhang@intel.com> <1457686179-20435-2-git-send-email-helin.zhang@intel.com> From: Panu Matilainen Message-ID: <56E2A9B5.60605@redhat.com> Date: Fri, 11 Mar 2016 13:19:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457686179-20435-2-git-send-email-helin.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Subject: Re: [dpdk-dev] [PATCH v4 1/2] ethdev: add vlan type for setting ether type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 11:19:19 -0000 On 03/11/2016 10:49 AM, Helin Zhang wrote: > In order to set ether type of VLAN for single VLAN, inner > and outer VLAN, the VLAN type as an input parameter is added > to 'rte_eth_dev_set_vlan_ether_type()'. > In addition, corresponding changes in e1000, ixgbe and i40e > are also added. > > Signed-off-by: Helin Zhang > Acked-by: Wenzhuo Lu > --- > app/test-pmd/cmdline.c | 30 +++++++++----- > app/test-pmd/config.c | 9 +++-- > app/test-pmd/testpmd.h | 3 +- > doc/guides/rel_notes/release_16_04.rst | 4 ++ > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 +---- > drivers/net/e1000/igb_ethdev.c | 21 +++++++--- > drivers/net/i40e/i40e_ethdev.c | 63 +++++++++++++++++++++++++++-- > drivers/net/ixgbe/ixgbe_ethdev.c | 19 +++++++-- > lib/librte_ether/rte_ethdev.c | 25 +++++++++++- > lib/librte_ether/rte_ethdev.h | 23 ++++++++++- > lib/librte_ether/rte_ether_version.map | 7 ++++ > 11 files changed, 175 insertions(+), 40 deletions(-) > > v4: > - Updated the doc of testpmd guide. > > v3: > - Used versioning mechanism to avoid ABI issue. > - Re-organized the patch set. > > v2: > - Used RTE_NEXT_ABI to avoid ABI change issue. > - Reworked the announcement of ABI change for release 16.07. > [...] > @@ -1077,7 +1088,7 @@ typedef int (*vlan_filter_set_t)(struct rte_eth_dev *dev, > /**< @internal filtering of a VLAN Tag Identifier by an Ethernet device. */ > > typedef void (*vlan_tpid_set_t)(struct rte_eth_dev *dev, > - uint16_t tpid); > + enum rte_vlan_type type, uint16_t tpid); > /**< @internal set the outer VLAN-TPID by an Ethernet device. */ > > typedef void (*vlan_offload_set_t)(struct rte_eth_dev *dev, int mask); > @@ -2346,6 +2357,8 @@ int rte_eth_dev_set_vlan_strip_on_queue(uint8_t port_id, uint16_t rx_queue_id, > * > * @param port_id > * The port identifier of the Ethernet device. > + * @vlan_type > + * The vlan type. > * @param tag_type > * The Tag Protocol ID > * @return > @@ -2353,7 +2366,13 @@ int rte_eth_dev_set_vlan_strip_on_queue(uint8_t port_id, uint16_t rx_queue_id, > * - (-ENOSUP) if hardware-assisted VLAN TPID setup is not supported. > * - (-ENODEV) if *port_id* invalid. > */ > -int rte_eth_dev_set_vlan_ether_type(uint8_t port_id, uint16_t tag_type); > +int rte_eth_dev_set_vlan_ether_type(uint8_t port_id, > + enum rte_vlan_type vlan_type, > + uint16_t tag_type); > +int rte_eth_dev_set_vlan_ether_type_v22(uint8_t port_id, uint16_t tag_type); > +int rte_eth_dev_set_vlan_ether_type_v1604(uint8_t port_id, > + enum rte_vlan_type vlan_type, > + uint16_t tag_type); > > /** > * Set VLAN offload configuration on an Ethernet device Its nice to see people actually trying to be compatible on occasion :) However in this case there's not much point in doing so, because libethdev ABI has already been broken in this cycle: http://dpdk.org/browse/dpdk/commit/?id=cfd2279ea6299826fe992028f1dffaf9fa7e7d0a In other words, the compatibility versions can never get invoked because all software built against libethdev needs to be rebuilt anyway because of the soname bump. Just drop the compat versions, no point carrying around something that cannot possibly get used. - Panu -