From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4B90642923 for ; Wed, 12 Apr 2023 08:58:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C921427EE; Wed, 12 Apr 2023 08:58:39 +0200 (CEST) Received: from authsmtp.register.it (authsmtp09.register.it [81.88.48.59]) by mails.dpdk.org (Postfix) with ESMTP id 16B1C41153 for ; Wed, 5 Apr 2023 18:00:03 +0200 (CEST) Received: from DESKTOPPE5KR91 ([2.229.169.133]) by cmsmtp with ESMTPSA id k5YIp1wAImoW1k5YIp59SU; Wed, 05 Apr 2023 18:00:02 +0200 X-Rid: smtp@outsys.eu@2.229.169.133 From: "Ernesto Ruffini" To: Subject: ethtool-like command on ice pmd Date: Wed, 5 Apr 2023 18:01:47 +0200 Message-ID: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0271_01D967E8.B114BC20" X-Mailer: Microsoft Outlook 16.0 Thread-Index: Adln1+thRc0piOg3T6GEGz94TgU6cQ== Content-Language: en-us X-CMAE-Envelope: MS4xfOgZnWotyNZRgLylJuV9uAEXu+1K6oRvnCXFJ2gAMFiSi4/47HiBJiQy38wdqd0t8snUDW7OlULQ2Ehb++2Up1I9pC4qdS7CwnVJ8TkKSCzogGvm26qG hAWXYOloSG77LL2qvtM/4AByVS15O7dA3I23Bu1nGfvx6Uhci3CieKuXjrX9KkHtfs5t5K9lG3h5aA== X-Mailman-Approved-At: Wed, 12 Apr 2023 08:58:36 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org This is a multipart message in MIME format. ------=_NextPart_000_0271_01D967E8.B114BC20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I would like to configure an Intel E810 with something like ethtool --set-priv-flags eno1 mdd-auto-reset-vf on Is there a way to do it from inside DPDK? I tried to run the ethtool command before binding the nic to the DPDK driver, but apparently the behaviour is reset once the binding takes place. Thanks ------=_NextPart_000_0271_01D967E8.B114BC20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

I would like to configure an Intel E810 with something = like

ethtool --set-priv-flags eno1 = mdd-auto-reset-vf on

 

Is there a = way to do it from inside DPDK?

I = tried to run the ethtool command before binding the nic to the DPDK = driver, but apparently the behaviour is reset once the binding takes = place.

 

Thanks

 

------=_NextPart_000_0271_01D967E8.B114BC20-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F8B742923 for ; Wed, 12 Apr 2023 09:07:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53EC940FAE; Wed, 12 Apr 2023 09:07:16 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id E92174067B for ; Wed, 12 Apr 2023 09:07:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681283234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RAcmxBWM/wBs1pvxer3ECbjulLPFNuqE61fGK8rqooo=; b=caFIT0Yv1Wy0QUpRKAVnq1+19PWYjKNUe27/LuJwaDQ3y32d/S431cARKvI7kCkGfKQTBk X7TIhOYklRJ4J/RZiRG4jkUUYQiXVlZRw8NBExKRQfmWcojDiJGQjuCV/wSTaeTZkg+x5s E9q2UyXLCFk1D5upPnzlA2n3ccxhZ1w= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-400-nsxnBCTyORiIpkCgcAVMwQ-1; Wed, 12 Apr 2023 03:07:10 -0400 X-MC-Unique: nsxnBCTyORiIpkCgcAVMwQ-1 Received: by mail-pj1-f70.google.com with SMTP id lp6-20020a17090b4a8600b00244a02d7bbcso4687762pjb.8 for ; Wed, 12 Apr 2023 00:07:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681283229; x=1683875229; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RAcmxBWM/wBs1pvxer3ECbjulLPFNuqE61fGK8rqooo=; b=cjZhVaSq2+wGfw3+bkflmVEZ9VEPGHdS3fVbFfQGDXqwSCMuxCWAKIFmbPvHQ6Nzap cb4wEzddzlW8ryQ/Mj7FZbEwFxv5qemWlU2docBYrDOUTJihih180C6emew0pYG3yCWO xoT92CRid9IOErLxZ/wcTX+amqVXRY6TkoCc20c6zDUXs/CV4FkUM9UWTT9Wn4iz1hX+ aZCHQxApk0splnuYfNGejKpCPn00OLf3iGPQfewCbZ5ljbI0jMJk9/BOl2dATRNUw4k3 +1BtbjjkMD6+Rx3jufwomHRBkbU8PB6S6VPW8aRl3ZY1l6ClhX1MCBQZKqK5k+vJogsK d3Kw== X-Gm-Message-State: AAQBX9frgUT0/Ib6eycHeJgE/I4PPHu2lIVs0CO+WYOphCP/SXbGwh9Z 9wkI6ZAKg8710pcfaSrIXqax6zQY5eGxGqOdCiYzNx9DKzg2CYtNstl34gilc11hw4bkJHjrk9N yMS+NLpxpozWJpbxVtdxyGQ== X-Received: by 2002:a17:902:e1ca:b0:19a:7f9c:66e3 with SMTP id t10-20020a170902e1ca00b0019a7f9c66e3mr624921pla.5.1681283229616; Wed, 12 Apr 2023 00:07:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bBqM5/KaGgGod08jqVb6q5pUh/z3J6tKcIol6V2rzbMb1lwbGr0AKUFAHVtXg6hpIZ5gif4wOAbGlJ9iLczYs= X-Received: by 2002:a17:902:e1ca:b0:19a:7f9c:66e3 with SMTP id t10-20020a170902e1ca00b0019a7f9c66e3mr624918pla.5.1681283229339; Wed, 12 Apr 2023 00:07:09 -0700 (PDT) MIME-Version: 1.0 References: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> In-Reply-To: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> From: David Marchand Date: Wed, 12 Apr 2023 09:06:58 +0200 Message-ID: Subject: Re: ethtool-like command on ice pmd To: Ernesto Ruffini , Qiming Yang , Qi Zhang Cc: users@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hello, On Wed, Apr 12, 2023 at 8:59=E2=80=AFAM Ernesto Ruffini wrote: > I would like to configure an Intel E810 with something like > ethtool --set-priv-flags eno1 mdd-auto-reset-vf on > > Is there a way to do it from inside DPDK? > I tried to run the ethtool command before binding the nic to the DPDK dri= ver, but apparently the behaviour is reset once the binding takes place. Added net/ice maintainers. --=20 David Marchand From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CC9F42928 for ; Wed, 12 Apr 2023 16:53:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89E86410F2; Wed, 12 Apr 2023 16:53:05 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 9B872406A2 for ; Wed, 12 Apr 2023 16:53:04 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id c3so12705686pjg.1 for ; Wed, 12 Apr 2023 07:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1681311183; x=1683903183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xPFwA6nzau0KrX2Qt++lJkCf2ETdbGD/MS4R0w6+kBw=; b=XwGKtFqRiu79j0kzI6CeVH4dIdQCcdC4XWbZLNaiZEwqkvNtGanFZxJTzKzEHUaC3M 8qRLr6bZi7o1NgCTf7uUJsEj/lfam53TmuKoBp5jqxPNadd7dPAQsPSnBSMBiUyZQyY9 AzgVGFyXfga9xYpfvF3l6Chrbj4f12O10u1MAVwQ0XbyW5JqXDzXbQ9zu0hXLwzOWVAJ gona8zHDAUR99l9FYeXbTcv0K9Ut4XByljhPXXXyeR3Lborb5cIK/xJ3X8YDVsJdvk6E QtFc/29VxE9U3LtViDz1uR+R/m89Qspx7kZ1cXi7wQKZGVN2pxLWg8FJkBKyytSl32vf o3pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681311183; x=1683903183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xPFwA6nzau0KrX2Qt++lJkCf2ETdbGD/MS4R0w6+kBw=; b=vONH3iJyU8s0FsKeHNN7/iJriqHYrkb1lOEnNEbxdN6CvnOnuLGG46w8Y4RiiFobhA CopXUxhctYTaDVp0AtOS+Wb3jyxKUlYNv/U01ideSbAxvsIXSxMuRFOOhpb7LSRptG8d DvELbq1M7h+t3InNkXyini+QLlkCELaYzBS6Bu8ZacHZ3TdYh4JSDORSvZC9rseYexZP TbIr+hjEtJ9WsX3MEvxBBGBh7At0vpTS/2AEBtcj3qz+Or7beD8rfnFwUTWr3MeNmNcW DqK9+pN+qb04KRC+yMcS/EKMtUyjxKZdWv8xcxZNya6u6zligptT7YDxiI5cHi52mVbk 3gnA== X-Gm-Message-State: AAQBX9eVkTrqD/s0yxIng8ZV2y11rUXU4e40eri3bjKylYev6oUZuVqX wWsSt8LuB/qG6PqjT/+kbZBhMqw1FT+sl2rUm5ntGgyh X-Google-Smtp-Source: AKy350Z94w+V1icyFvSnXKZ9UMUfYCGQNeksMsRSSQPxYhHx7ke5fZri4NDyz4a/9fDh26i6RbJ/JA== X-Received: by 2002:a17:902:d492:b0:1a6:669f:18ae with SMTP id c18-20020a170902d49200b001a6669f18aemr2914226plg.67.1681311183595; Wed, 12 Apr 2023 07:53:03 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jw22-20020a170903279600b00195f0fb0c18sm648159plb.31.2023.04.12.07.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:53:03 -0700 (PDT) Date: Wed, 12 Apr 2023 07:53:01 -0700 From: Stephen Hemminger To: "Ernesto Ruffini" Cc: Subject: Re: ethtool-like command on ice pmd Message-ID: <20230412075301.77baa023@hermes.local> In-Reply-To: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> References: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Wed, 5 Apr 2023 18:01:47 +0200 "Ernesto Ruffini" wrote: > Is there a way to do it from inside DPDK? Looking at code for DPDK driver for ice, the answer is no. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 096FC42937 for ; Fri, 14 Apr 2023 01:49:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EEE240144; Fri, 14 Apr 2023 01:49:04 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 3F945400D5 for ; Fri, 14 Apr 2023 01:49:03 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id p17so5572526pla.3 for ; Thu, 13 Apr 2023 16:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1681429742; x=1684021742; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=HquiY8qFDocnyDzPtb/KmWrgxRyJLYHXP4JRFD1RhQY=; b=hfEekaA0EabYCiXbsCP2dJLBmq5cUf0acjWuFgSQYMOrN9qbAHx9V+MYaLPjHv4+DR s7EbAIHDtd3IGHDDpQAHwonBy7XEqGc6NJhwKQGq10jV9eF8iTC8utsFeEpzgo47nBBq R6QST3MTLpWm+uUj+1FXfLQlt9Bp2yrQ3QivESaT60OB7nmhezCFlP8c3U6uVleS8N0y w187L0VHwYotCIQRHHWiMsnDdZkjvwyqyDP5OBB/lo9xWCSH4QqV0CumNHY9bwa0VFJ3 Z5CRcR/UmEUGoTKDLav9FuLNyDJl+3bU7r3tSTWTCszft4vaUnsyYAQjDb7uxExvTPNe FBNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681429742; x=1684021742; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HquiY8qFDocnyDzPtb/KmWrgxRyJLYHXP4JRFD1RhQY=; b=ZfjNzoR1fqub7d1l5vDqF0xzhq165uoVsv6Ttjc+4bfzhReALs3z07PrWHWoEEUbLm w7oNG8YeV1YKNcYx0YW1HSI4ynhpewey3oewK6RSWuPt4IeXjlBLJfxDwZ2CCYnBGjzU SksA+mUtyKQSn2evHTYP+TtxRYXfTXJffmsar4jTNdCbWYBNOlBy3rkAreLLOOyGPSpP FsvkQeyJjdFzjjyPUY9NGOBuGO63TdOVy5EKTMnuMRPc5QJptphuhq+2j0ArNo31NFnI h+Te+4gCAQcs9Matk8SEVz8BhyJIU0V1AdGptZzcn8CQRn5VgXSDGuxkKiv6PxEk9Wit MJUg== X-Gm-Message-State: AAQBX9fVppiGa8YcIT83NAlqs0KrJip1ETF5KAav5BLO0mLAHE5CbSuq UFWsp501vjkR174Y37shz7n5wVbvO4islbJLf95CBQ== X-Google-Smtp-Source: AKy350aerwbWDOWT0IkpwkndZgOyszOcCxKq1zDL7yvEEfhy6zl/UaH1AQXatDVhNDXBoagELgDrCw== X-Received: by 2002:a05:6a20:47de:b0:de:5e0b:caa8 with SMTP id ey30-20020a056a2047de00b000de5e0bcaa8mr3205146pzb.52.1681429742226; Thu, 13 Apr 2023 16:49:02 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j22-20020aa79296000000b0062a7462d398sm1940567pfa.170.2023.04.13.16.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 16:49:02 -0700 (PDT) Date: Thu, 13 Apr 2023 16:49:00 -0700 From: Stephen Hemminger To: "Ernesto Ruffini" Cc: Subject: Re: ethtool-like command on ice pmd Message-ID: <20230413164900.698f20e9@hermes.local> In-Reply-To: <034201d96ddc$ff662fe0$fe328fa0$@outsys.org> References: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> <20230412075301.77baa023@hermes.local> <034201d96ddc$ff662fe0$fe328fa0$@outsys.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 13 Apr 2023 09:53:12 +0200 "Ernesto Ruffini" wrote: > Thank you Stephen, > I would really like the PMD driver could implement it. > Any idea on where to start? > I saw the ethtool sends a message to kernel, but from there I cannot > understand where (and how) this is implemented in the ICE driver. > Porting it to the PMD driver would then be another topic, but at least we > can quantify the effort I don't work for Intel or have the hardware... But the likely implementation in DPDK would involve adding device specific devargs. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9295E4296B for ; Mon, 17 Apr 2023 10:16:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18AD942D40; Mon, 17 Apr 2023 10:15:42 +0200 (CEST) Received: from authsmtp.register.it (authsmtp31.register.it [81.88.54.72]) by mails.dpdk.org (Postfix) with ESMTP id 352004021F for ; Thu, 13 Apr 2023 09:53:11 +0200 (CEST) Received: from DESKTOPPE5KR91 ([2.229.169.133]) by cmsmtp with ESMTPSA id mrlWp4BcJVQoOmrlWpKNSP; Thu, 13 Apr 2023 09:53:10 +0200 X-Rid: smtp@outsys.eu@2.229.169.133 From: "Ernesto Ruffini" To: "'Stephen Hemminger'" Cc: References: <027001d967d7$ed8bc510$c8a34f30$@outsys.org> <20230412075301.77baa023@hermes.local> In-Reply-To: <20230412075301.77baa023@hermes.local> Subject: RE: ethtool-like command on ice pmd Date: Thu, 13 Apr 2023 09:53:12 +0200 Message-ID: <034201d96ddc$ff662fe0$fe328fa0$@outsys.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH1ZnMHR5A0o6XB9N6vF4Iz9IB1hQJS4yWCrt5Ow+A= Content-Language: en-us X-CMAE-Envelope: MS4xfJSKRFQ126rqEcAgbTl61qW3zS2Bl3tZ8oVOEQBC8RnognKkSH1FndkaZm/mqun/d5U7MUwYOyG6meFO1nibVLkLDx4zxgRPXiP7+t5M/C3jXWtXUZXX vczfbzqjY+OVOHtHmu3vE/XhxBJYYH2ibV5fNpBnSFzrXQ9KtVnXL2dgvxRXLSRTnEbdzvU9+Bs1prZ0EktK9TIozAXHdJELLsyDM0gyifInWbjQXKfvCwLz X-Mailman-Approved-At: Mon, 17 Apr 2023 10:15:39 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Thank you Stephen, I would really like the PMD driver could implement it. Any idea on where to start? I saw the ethtool sends a message to kernel, but from there I cannot understand where (and how) this is implemented in the ICE driver. Porting it to the PMD driver would then be another topic, but at least we can quantify the effort Thanks Ernesto -----Original Message----- From: Stephen Hemminger Sent: Wednesday, April 12, 2023 16:53 To: Ernesto Ruffini Cc: users@dpdk.org Subject: Re: ethtool-like command on ice pmd On Wed, 5 Apr 2023 18:01:47 +0200 "Ernesto Ruffini" wrote: > Is there a way to do it from inside DPDK? Looking at code for DPDK driver for ice, the answer is no.