From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 12091DD2 for ; Wed, 2 May 2018 12:13:56 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id j4so21826938wme.1 for ; Wed, 02 May 2018 03:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3K4s5cr7T9LkPsaQLgs7PhP19pwChBzE2TXW05Dd+mk=; b=lC/if3PRnZR3tGW95jUDlme0v9CxEO6kB+SSltlZSzHmooyVVlllX7XCi4LeYVZaBw sNaX20Mkwaoj9UyPauDn6Gejd+IzDd8+9g5i8mPM/UPD1fp1+RWnGVKVDuFHL/aeq0C4 7DHerpegQwqRNHx+6sN4ubeP0iC5uOk5nHfxNj37mu0oFtnrfoR6sJNf7ZbA7wEvMRG4 AhwZ5um2Ml50F3++qbrM7YGKcKx1grqoApm4iNWX6NqbcGmJ9t6/+ce3SRdV7UBFru83 1gYFmyZFGnLGhl11230LJnHNUlwthP0GL7G+LcBH/WicvX4tX40Q+ck+lo/Ne1K1tJ5h /Bsw== 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:references :mime-version:content-disposition:in-reply-to; bh=3K4s5cr7T9LkPsaQLgs7PhP19pwChBzE2TXW05Dd+mk=; b=ZNe/TDJa0vnMGJTiYsaETPk3tujf7RKp/6v/BYRJIaUwRbKW74xlD75bXl2CflIuja VDo/hDaJOtQQO0ezu4A8tEMcdRLz63KNwgiihPDTYwzrJlLFL1lZeI38fdNObW5E6DOI hbrMJyd+Sne3VFAfZgcUz0SbeGNENN3wtFfCB8EXTiIieo3CUKP0hjP3AQt5FcvyhOZw 1U7JjWr5qGXNhHeaX+hUwv/y1pyiOW3uGYhaMyWPqf0wj309ljTp7wpTxIp7wGm9gb3X VvFoZVngYW8UsYwcbQx9/3wQiO5hbT6aTrVQvMJT6z7O8PGIsEvz+n1gts3azLr3WzxL BwVg== X-Gm-Message-State: ALQs6tDn+wtIegdvK3oiSE7rrWnFMNh4L6xUO9LgavZ2Ghji0ghYEBNM 1cU2eUHMrVT2psv/fCcfK18SzA== X-Google-Smtp-Source: AB8JxZpgvaXZiJ3uvcvFFtkNWA4kuLGAtSrjnQWV1qgJUqxasEPOLFHIhcaHfScf5SoCIaAOjDybRw== X-Received: by 10.28.156.199 with SMTP id f190mr6674436wme.79.1525256035810; Wed, 02 May 2018 03:13:55 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id a13-v6sm10941144wrc.19.2018.05.02.03.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 03:13:54 -0700 (PDT) Date: Wed, 2 May 2018 12:13:40 +0200 From: Adrien Mazarguil To: "Wu, Xiaoban" Cc: Stephen Hemminger , "users@dpdk.org" Message-ID: <20180502101340.GC4957@6wind.com> References: <20180426154055.16842d96@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-users] Interesting considerate but annoying behavior of MLX5 driver X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2018 10:13:56 -0000 On Fri, Apr 27, 2018 at 01:29:38AM +0000, Wu, Xiaoban wrote: > Hi Stephen, > > > Thanks very much for your help. Though I don't know if it is a overkill, the following does the job. > > > /sbin/ethtool -s enp59s0f0 autoneg off > /sbin/ethtool -A enp59s0f0 rx off > /sbin/ethtool -A enp59s0f0 tx off Note that DPDK applications should rely on rte_eth_dev_flow_ctrl_get/set() with fc_conf->mode = RTE_FC_NONE to achieve the same behavior in a generic fashion. While doing so translates exactly to the above ethtool calls with mlx4 and mlx5, other PMDs do not typically leave a kernel netdevice around for external applications to play with. -- Adrien Mazarguil 6WIND