From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v7 2/2] mbuf: implement generic format for sched field Date: Tue, 15 Jan 2019 14:37:05 -0800 Message-ID: <20190115143705.08764641@shemminger-XPS-13-9360> References: <20181219154237.836-1-reshma.pattan@intel.com> <20181220121609.16314-1-reshma.pattan@intel.com> <20181220121609.16314-2-reshma.pattan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, jerin.jacob@caviumnetworks.com, nikhil.rao@intel.com, olivier.matz@6wind.com, thomas@monjalon.net, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, konstantin.ananyev@intel.com To: Reshma Pattan Return-path: Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 98765137D for ; Tue, 15 Jan 2019 23:37:08 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id c123so2015530pfb.0 for ; Tue, 15 Jan 2019 14:37:08 -0800 (PST) In-Reply-To: <20181220121609.16314-2-reshma.pattan@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 20 Dec 2018 12:16:09 +0000 Reshma Pattan wrote: > This patch implements the changes proposed in the deprecation > notes [1][2]. > > librte_mbuf changes: > The mbuf->hash.sched field is updated to support generic > definition in line with the ethdev traffic manager and meter APIs. > The new generic format contains: queue ID, traffic class, color. > > Added public APIs to set and get these new fields to and from mbuf. > > librte_sched changes: > In addtion, following API functions of the sched library have > been modified with an additional parameter of type struct > rte_sched_port to accommodate the changes made to mbuf sched field. > (i)rte_sched_port_pkt_write() > (ii) rte_sched_port_pkt_read_tree_path() > > librte_pipeline, qos_sched UT, qos_sched app are updated > to make use of new changes. > > Also mbuf->hash.txadapter has been added for eventdev txq, > rte_event_eth_tx_adapter_txq_set and rte_event_eth_tx_adapter_txq_get() > are updated to use mbuf->hash.txadapter.txq. > > doc: > Release notes updated. > Removed deprecation notice for mbuf->hash.sched and sched API. > > [1] http://mails.dpdk.org/archives/dev/2018-February/090651.html > [2] https://mails.dpdk.org/archives/dev/2018-November/119051.html > > Signed-off-by: Jasvinder Singh > Signed-off-by: Reshma Pattan > Acked-by: Cristian Dumitrescu > Acked-by: Konstantin Ananyev This patch breaks build of VPP because it refers to sched.hi and sched.lo. Breaking source compatibility is as bad (if not worse) than ABI breakage. Maybe make the sched field a union?