From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 594F6A0471 for ; Mon, 12 Aug 2019 17:54:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 46B39378B; Mon, 12 Aug 2019 17:54:23 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by dpdk.org (Postfix) with ESMTP id 22D6A2C5 for ; Mon, 12 Aug 2019 17:54:22 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id m9so47871420pls.8 for ; Mon, 12 Aug 2019 08:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qIAe1Ei/LNQLiOfP+mKGkqdPrbcDWPu/LWjZ2nZCGlA=; b=ioFSGJuBYrJtwlmnzbnSPWyI33zIrk52cz/kWBe6UjHoaDuNdlEKSrCoDcQTH7PEaN UtouoIGrDcd+sFvcS0Gj4EEqosYos6LQ+rKz/CyDX6G4plZpcKfwlfCBDLTZM+0VViDB 3u5XdrLJ5CkvoWmxIon1lb0KkJbeGH2FjQovIIE6rbdw2XWCwXDWISOx6wwWOL1s7FvR gIO+7bGSwrpYeGhvX+k9wlpqYFTyzECtK8nTGD+ugjWheaJpD5u7BKTYLeSiv84gtAgu 1qcm5e4D+fXAXy9MGnqVW10HSu/buJZHJ/TTHNVzIk1glzrtC8RW1ETin0U8ohpxxakb VzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qIAe1Ei/LNQLiOfP+mKGkqdPrbcDWPu/LWjZ2nZCGlA=; b=ovlZg2czGhZx1g+Ax/T3n2wf25Cf0qJI6vrnuVOdIWIfYdcoeynyMbRoSpSfjl9BMN 0urTd4Y8GOAKlXh4NBzK2wrHUf6i1K5ZZV19srRJfVReeeK63kmN4OCcJ/WXtI4uEwb2 zE8B096rPN22bUKU5HLzQgULF6PBdLjpJKs/hPYzMcnW/QtloA+2OfpBUxT36BQB2mqD tjNIL+3QlHAxYFj7m98blGbeQ2jFVShdCDQ2KXzSa9qKNBW85VqU3MLTiZIypD3NSOAg esmAEfHBIuvUY4JWJTbytif4xjyXCKmasB8F/rzEQG28SQabHJrgSmS8bMkV/XCarUpj 8cwg== X-Gm-Message-State: APjAAAWI42WrNpKN5CzFGXHFEc3aTkAaHKsFqSi1/8t+p/IWBWry40dM EvsDCzeaa4IsmeFZOnIbJLf7rQ== X-Google-Smtp-Source: APXvYqyF3AlWWyWPoORAbmtUbjVcdhjo0V1cduUG5Z3jSbrC8ma4WuzxlWMlEmFA+gXmrcWe0D2plA== X-Received: by 2002:a17:902:b406:: with SMTP id x6mr11690353plr.114.1565625261257; Mon, 12 Aug 2019 08:54:21 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q24sm13640332pjp.14.2019.08.12.08.54.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 08:54:21 -0700 (PDT) Date: Mon, 12 Aug 2019 08:54:14 -0700 From: Stephen Hemminger To: "Wang, Haiyue" Cc: David Marchand , dev Message-ID: <20190812085414.03c119e7@hermes.lan> In-Reply-To: References: <1565619305-17116-1-git-send-email-haiyue.wang@intel.com> <20190812083823.72e7c2a9@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [RFC v1 0/3] show the Rx/Tx burst description field X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Mon, 12 Aug 2019 15:42:45 +0000 "Wang, Haiyue" wrote: > > -----Original Message----- > > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > > Sent: Monday, August 12, 2019 23:38 > > To: David Marchand > > Cc: Wang, Haiyue ; dev > > Subject: Re: [dpdk-dev] [RFC v1 0/3] show the Rx/Tx burst description f= ield > >=20 > > On Mon, 12 Aug 2019 16:27:11 +0200 > > David Marchand wrote: > > =20 > > > On Mon, Aug 12, 2019 at 4:20 PM Haiyue Wang w= rote: =20 > > > > > > > > Since some PMDs have multi-path for Rx/Tx, FD.io VPP will tell you = in > > > > the Debug CLI what rx/tx function is being used: > > > > #show hardware-interface > > > > > > > > tx burst function: ice_xmit_pkts > > > > rx burst function: ice_recv_scattered_pkts > > > > > > > > But if the tx/rx is static, then 'dladdr' will return nil: > > > > > > > > tx burst function: (nil) =E2=94=82=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > > > > rx burst function: (nil) =E2=94=82=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > > > > > > > > For making things consistent and gracefull, we introduce an new str= ing > > > > field to describe the Rx/Tx burst information. This is vendor-neutr= al, > > > > it is used to identify the Rx/Tx burst selection if the PMD has more > > > > than one. > > > > > > > > If a PMD supports this, then rxqinfo/txqinfo->burst_info[0] !=3D '\= 0'. =20 > > > > > > The rx/tx handlers are the same for all queues of a ethdev port. > > > What is the added value to put this in a per queue api ? =20 > >=20 > > With some symbol table lookup tools it is possible to do introspection > > to find the symbol from the function pointer. Without breaking API/ABI.= =20 >=20 > Sounds cool, any link can be reached ? >=20 > VPP uses as below, but will fail for static function. >=20 > static const char * > ptr2sname (void *p) > { > Dl_info info =3D { 0 }; >=20 > if (dladdr (p, &info) =3D=3D 0) > return 0; >=20 > return info.dli_sname; > } You need to link with -g and not strip the binary.