From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by dpdk.org (Postfix) with ESMTP id 0433B1D9E for ; Sun, 26 Aug 2018 22:45:40 +0200 (CEST) Received: by mail-ed1-f42.google.com with SMTP id h4-v6so9080718edi.6 for ; Sun, 26 Aug 2018 13:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B9TtH+uiO/MsCXCgbWHzQqdd57yjHc4nTTmZNUuGa7w=; b=DwTpyg6rZoisb3knaYNz2wjc19FF6IPPlMh3xK1cP+SHjRwQAV29cVGsJGVQZvGZYc JlqBpYOrdNpNt3KlSk6klYAeBqSsUFO+J18P0vxStIyL4nD/Oq4UiwnwvbqVaVbEtg37 rM5aPvnCKHFUgUIQSJLHRySMMz3V4KM14Zj4BVCgn/RX9ZSR0zBTYsaE9Yvy06q7WoFM ToiYjn5wA9X5tbIGdVciMBrcu2Of3ROKlUQEQiRFO25sN99xL5+72AiZ4Wzzr/qvov+C DgovK5nfbFdBHok911LLqi26dBWzJJdqGu7FpgBjCtkPXT4wFLsDmsRcH4R/zCeCVgex bb9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B9TtH+uiO/MsCXCgbWHzQqdd57yjHc4nTTmZNUuGa7w=; b=Ii1zxsqSKtGibcEb7ix1ng6wcjTeBXVc1qW4z054mNFTPkfz2uBMo7HoaCfauXFOBX v0csnxw6iaBxbJeutgzZZqLNXfDom/YrDalRvH4yTzpcLWHOCgTJmn+UHEkN8xveIK66 Bs4X0Zmkh7ejQWK9BGueG8lxHzB3xwBc8Bh0GLotAEij6/ckf47Q8bGivPKXQl26hJjb 9f+HHMHvoOXWKbUSr5GVvBcSC6v/k9WFb3FWsWBtbrVp0ss2SL/s7uxH62NsWtITfdKj F+9+pZ+HLXnYHd586elIr9vpQCn6MZ9dk2wOsU9Dn0HHFBigqB5zztCsqDYudcdLwTqq Lk1g== X-Gm-Message-State: APzg51BegUAiNM4HF0lh2rBKy+z3+0HA04g/b10nQVHOey+/WMppqeWn nX3nEPPJgoI47vS3e8ecXhgbMwflwKsqyOXgYXg= X-Google-Smtp-Source: ANB0VdZ6l+MGd73F+3OP8CmZxzJoRGA6nL/89f9UGaIcZTdVb2pqHds8zkkfJ0qKp+bpjLyy3vpF/sdvkVVs3IQPRE0= X-Received: by 2002:a50:b4db:: with SMTP id x27-v6mr13428957edd.155.1535316340673; Sun, 26 Aug 2018 13:45:40 -0700 (PDT) MIME-Version: 1.0 References: <000801d43d36$ef9f7480$cede5d80$@ingenieurbuero-foss.de> <001401d43d76$fe69f860$fb3de920$@ingenieurbuero-foss.de> In-Reply-To: <001401d43d76$fe69f860$fb3de920$@ingenieurbuero-foss.de> From: Rami Rosen Date: Sun, 26 Aug 2018 23:45:32 +0300 Message-ID: To: Sebastian Foss Cc: dts@dpdk.org Content-Type: multipart/alternative; boundary="0000000000001a900e05745cb17c" Subject: Re: [dts] DDP / testpmd setup X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2018 20:45:41 -0000 --0000000000001a900e05745cb17c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Sebastian, Regarding rebinding, there are two types: One is with dpdk-devbind -b i40e pci_id_of_port And the second is the ribust one: rmmod i40e and then modprobe i40e. I am not sure as to which of the two you aim when talking about rebinding. I would suggest to start with the first option. It triggers calling the probe() callback of I40E, and not the full longer and heavier way with I40E module_exit() and module_init() callbacks Regarding userspace app for achieving it: you can follow the dpdk testpmd code, but this can take quite a time and effort. Regards, Rami Rosen =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=90=D7=B3, 26 = =D7=91=D7=90=D7=95=D7=92=D7=B3 2018, 22:57, =D7=9E=D7=90=D7=AA Sebastian Fo= ss =E2=80=8F< sfo@ingenieurbuero-foss.de>: > Hi Rami, > > I found the switch for testpmd to use a cmd line script instead of using > interactive mode. Still need to see if loading a ddp persists on the card > when rebinding the i40e driver instead of vfio / uio. > > The kernel i40e driver also seems to have the functions to use AdminQ to > load DDPs onto the card =E2=80=93 however im not sure how to do it from u= serland. > > > > > > *Von:* Rami Rosen > *Gesendet:* Sonntag, 26. August 2018 20:59 > *An:* sfo@ingenieurbuero-foss.de > *Betreff:* Re: [dts] DDP / testpmd setup > > > > Hi Sebastian, > > I don't know of such a way, unfortunately. Also you cannot automate testp= md > > as it is to load the profile automatically without going interactive mode= . > > > > Regards, > > Rami Rosen > > http://ramirose.wix.com/ramirosen > > > > > > > > > > On Sun, Aug 26, 2018 at 3:18 PM Sebastian Foss > wrote: > > Hi, > > we are using testpmd to store ddp profiles in an Intel X710DA2 NIC. Is > there a way to have those profiles stored in the NIC permanently =E2=80= =93 or what > would be the best solution to have those profiles loaded automatically at > boot and use a regular kernel driver afterwards ? From what i understand = so > far to use the DPDK functions to load a DDP Profile the UIO or VFIO drive= rs > have to be used. > > > > Thank you! > > > > Mit freundlichen Gr=C3=BC=C3=9Fen / Best Regards > > Sebastian Foss, Electrical Engineering (B. Eng.) > > Hardware & Software Development > > Gesch=C3=A4ftsf=C3=BChrer / CEO > > SF Engineering UG & Co. KG > > > > > > > > -- > > regards, > > Rami Rosen > --0000000000001a900e05745cb17c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Sebastian,
Regarding rebinding, ther= e are two types:
One is with=C2=A0
dpdk-devbind -b i40e pci_id_of_port
And the se= cond is the ribust one:
rmmod i40e and then modprobe= i40e. I am not sure as to which of the two you aim when talking about rebi= nding.
I would suggest to start with the first optio= n. It triggers calling the probe() callback of I40E, and not the full longe= r and heavier way with I40E module_exit() and module_init() callbacks
=

Regarding userspace app for a= chieving it: you can follow the dpdk testpmd code, but
this can take quite a time and effort.

=
Regards,
Rami Rosen
=C2=A0

=D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=90=D7=B3, 26 = =D7=91=D7=90=D7=95=D7=92=D7=B3 2018, 22:57, =D7=9E=D7=90=D7=AA Sebastian Fo= ss =E2=80=8F<sfo@ingenieur= buero-foss.de>:

Hi Rami,

I found the switch for testpmd to use a cmd line script instead of us= ing interactive mode. Still need to see if loading a ddp persists on the ca= rd when rebinding the i40e driver instead of vfio / uio.

The kernel i40e driver also seems to have the func= tions to use AdminQ to load DDPs onto the card =E2=80=93 however im not sur= e how to do it from userland.

=C2=A0

=C2=A0=

Von: Rami Rosen <ramirose@gma= il.com>
Gesendet: Sonntag, 26. August 2018 20:59
An= : sfo@ingenieurbuero-foss.de
Betreff: Re: [dts]= DDP / testpmd setup

= =C2=A0

Hi Sebastian,

I don't know of such a way, unf= ortunately. Also you cannot automate testpmd

as it is to load the profile automatically without goi= ng interactive mode.

= =C2=A0

Regards,

Rami Rosen

<= div>

http://ra= mirose.wix.com/ramirosen

=C2=A0

=C2= =A0

=C2=A0

=C2=A0

On Sun, Aug 26, 2018 at 3:18 PM Sebastian Foss <sfo@ingenieurbuero-foss.de> wrote:

Hi,

we are using testpmd to store = ddp profiles in an Intel X710DA2 NIC. Is there a way to have those profiles= stored in the NIC permanently =E2=80=93 or what would be the best solution= to have those profiles loaded automatically at boot and use a regular kern= el driver afterwards ? From what i understand so far to use the DPDK functi= ons to load a DDP Profile the UIO or VFIO drivers have to be used.

=C2=A0

Thank you!

=C2=A0=

Mit freundlichen Gr= =C3=BC=C3=9Fen / Best Regards

Sebastian Foss, Electrical Engineering (B. En= g.)

Hardware & Software Development

Gesch=C3=A4ftsf=C3=BChrer / CEO

SF = Engineering UG & Co. KG

= =C2=A0

=C2=A0



--

regards,

Rami Rosen=

--0000000000001a900e05745cb17c--