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 3D008A0471 for ; Mon, 12 Aug 2019 17:38:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 081238F96; Mon, 12 Aug 2019 17:38:27 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by dpdk.org (Postfix) with ESMTP id 43D8F49E0 for ; Mon, 12 Aug 2019 17:38:25 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id i2so48054150plt.1 for ; Mon, 12 Aug 2019 08:38:25 -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=pYeis3mckRIX7cJuRDOvaRDEXoJeKMzhUcsayLyQSQ0=; b=Us7ipD1InL4ed0MKK9Toi+mMkwaugwmEcXXjhSi/+W19q71Hp6c6SMAyyORO1PdGUv CSU2mWkfZG0BcMsVSfpSNlPsCMIIKt+T1JsLbK2h68N7zpVOBDfjwjmKEdoqkf4yd5WH JxasWvu0H8WWx3wTGUv/AtTm8JCvqwYwP9i+8oLJkNyRRm0YmVW9CgB90IZH4Nyb2sbS LMp/0jraUp7PiUjQcfC1HkBfO15xz0FcHgQUyOLBQs67XO2GU5KDE8G0WTTLFlC4PVVx Vp+ED4lQ6g3ptVb6Ey2OYGqntR1OzsTR1YfmEOSuC3Tn/S2SVJ2wToL//KY4h9+CXUkU APTQ== 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=pYeis3mckRIX7cJuRDOvaRDEXoJeKMzhUcsayLyQSQ0=; b=nWNxIrfsmTjNEZYY1qk68b6+/xbB53k00N+7+0v69gvTP2SWDI1Tc0jYe9JDW1T0PP GsmiBNKV5Pn+57sxCQM3UDKmoh7fe+GmiKd8zlIchNLpzZ+NkcbiQlGeT/1Z+DWG5EKp ovyeq9nn7exvv8SM7jjeJ/FNWtJBxwQ4vut90xm4OepKeoOrIzVrXsaeCVhq8ByGXVF+ KhjQyQPIhhjD4GNLl3h26AqKoQpEwZChlJTApuXR/iHIZWwnwaZbAXXbp2t4g/tYykp0 gsZPWcM3DfEJFLHx8eSIVERPQI9vWIXwqSfWjWxYu7HXs8RNRWShRAWSK0pSizn2x38R AA9Q== X-Gm-Message-State: APjAAAUNpMyPH/7+EiY2Czz0TcQii942DSuioio3VyMxwaXlrAiy9TWk u07zgsEbwucABE9x/aY3aNTr4yObqt4= X-Google-Smtp-Source: APXvYqxeMQPkjJKk9cW4Pheu8BuoWHtdHg3/I4cg1bckuoUO67VLf2syKtInrWwsKr9ZAdV2/ga7Lw== X-Received: by 2002:a17:902:b212:: with SMTP id t18mr26728218plr.246.1565624304512; Mon, 12 Aug 2019 08:38:24 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a15sm148282914pfg.102.2019.08.12.08.38.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 08:38:24 -0700 (PDT) Date: Mon, 12 Aug 2019 08:38:23 -0700 From: Stephen Hemminger To: David Marchand Cc: Haiyue Wang , dev Message-ID: <20190812083823.72e7c2a9@hermes.lan> In-Reply-To: References: <1565619305-17116-1-git-send-email-haiyue.wang@intel.com> 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 16:27:11 +0200 David Marchand wrote: > On Mon, Aug 12, 2019 at 4:20 PM Haiyue Wang wrote: > > > > 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 string > > field to describe the Rx/Tx burst information. This is vendor-neutral, > > 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 >=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 ? With some symbol table lookup tools it is possible to do introspection to find the symbol from the function pointer. Without breaking API/ABI.