Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp364621ybk; Sat, 9 May 2020 05:20:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLyFJBriON7YYevk8ky8pNPgADPOXRHPTLCj/O26Q8lypxvYjbGKVObtMngmm6G3TdC02jv X-Received: by 2002:a17:906:90d0:: with SMTP id v16mr5978534ejw.114.1589026842413; Sat, 09 May 2020 05:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589026842; cv=none; d=google.com; s=arc-20160816; b=MAzSV1Khln8eX32epri7YJ5iQnzqaRkkNjmV+vhqCoRx2f2BWJO2RdZNU3mD2B0H/e xkwRWet8xOGJULfBFVGD3gwEhplVO2e2IhN0VhxBHj207HV5BfpogmQrmMlfTfZC5uSX ET6S15e2Gcc/HyAowq1w3cN5XC2VYnw1nb3ek7h6NXlLXPV9eWooXMSPVtb3rw2UIeWi bXAZFAq/bLb9d+/cI1tCM7CgXnkUpSRfPvMB5FusUTOi/aBpYY/PvCiPFyzT4lQ0ABJ3 gJJkLA/HpVLnka3C774+lyS/oiC3Wa7qsAS/7+wdhseeN5LragxziJqliPZhpgkJ1h+C PgNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H76Mksznw95btvUBSKx6gefc+t9SRkpD4GR2A1wMEWw=; b=n22mXruwICtQyZcC/5qAo7au/Pn1e93Ern/8cqok5YmGJWyiPAGQnUTAm60wEKBOvv +pydNeW2kJEty7GJbsomFDUpv5EByNoPLHgPd23Hwcxqehm4HA5w/LHlNHoCP8PVdrIm ZAZPaZftKs+B8GL7h7powu6S8EaEy65GYSyOAUPNrYdqq0WKUM2Y14k0Hlw/XdsUvTSH fx2VnEI6XdNCDJGIsmRH+w+V7SDvdkFwwIryoaWzKMdVRU0PC0lGhU/PxzGR4GtnEquk Rjy3c33QFai02+Oa9yfHuDzGtsI12ZnKBpRiccCU10u93uB/yXxVFglBiAjC7Nzl0g61 i3Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IENZUijm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si2805519edz.574.2020.05.09.05.20.18; Sat, 09 May 2020 05:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IENZUijm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728519AbgEIMRC (ORCPT + 99 others); Sat, 9 May 2020 08:17:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:35376 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728392AbgEIMRB (ORCPT ); Sat, 9 May 2020 08:17:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589026620; 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: in-reply-to:in-reply-to:references:references; bh=H76Mksznw95btvUBSKx6gefc+t9SRkpD4GR2A1wMEWw=; b=IENZUijmoG3eopQ3p6xt24H7EezbJ+57h+6P+Qpl3TwQ+HCqziTsZIdGHCsqJQ5B+KxfsH 0MdVjyHn2uhdns1/ei7SamlLH64QdOTdZyxym9JGVHLoNmTAVu2y8WyeRW7olkvnPMnxdl pVaMgDetv1ueRDLd58TM8cnKWvZ8q2o= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-482-NBq6ZrjiN12jZy9RB8Y6qQ-1; Sat, 09 May 2020 08:16:57 -0400 X-MC-Unique: NBq6ZrjiN12jZy9RB8Y6qQ-1 Received: by mail-ej1-f71.google.com with SMTP id cb22so1874366ejb.12 for ; Sat, 09 May 2020 05:16:57 -0700 (PDT) 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=H76Mksznw95btvUBSKx6gefc+t9SRkpD4GR2A1wMEWw=; b=SJ+/24rGYT8oXWYlVLH5DfnBBQ/1urJVOL1hf1w6KccGQtfZVhhWnHbiCf9FSmq16c HRzTo//1g3dvs1jozfd/1yk5uNYgTCmunWTTwkM9hE8f8be+NLMt7x4B0EJEka3OUfV4 AmrjjOC+yTnNc1PPpehaBbq+XUJjGHp3cyPAvtkUfXctGccPd6os0GJtlmAtSK3N7bgp MGz2m/Nkv28jMp41ipiGf6GHzkP0t9b6RZCB09rfwWHgoQlIEmHQCsrjt5zQxcWXvIOn T5OrxTzwqrSC0BTNjWnJadB/abNxUz3WrUA4zejCqnvhlfYF0fgLFmnOZa0XJxMQ2ed5 rSlg== X-Gm-Message-State: AGi0PuZH0iketywvFi1aUtNpaiYTIwQ04TfJmYZsffOPlBxCu8QRiI1s VCuus3RI1RyUiqNZgzgFgDGbavFtLfeIGRrNN19+PwpL47sR/Xgq9uvXEsnXtmQdj/GHePvRwFB 2V0oOVsvCn2wDKCaWSPvJG4b/b1aP6cYibWJPZTck X-Received: by 2002:a17:906:3584:: with SMTP id o4mr5983542ejb.70.1589026616219; Sat, 09 May 2020 05:16:56 -0700 (PDT) X-Received: by 2002:a17:906:3584:: with SMTP id o4mr5983519ejb.70.1589026615896; Sat, 09 May 2020 05:16:55 -0700 (PDT) MIME-Version: 1.0 References: <20190524100554.8606-1-maxime.chevallier@bootlin.com> <20190524100554.8606-4-maxime.chevallier@bootlin.com> <20200423170003.GT25745@shell.armlinux.org.uk> In-Reply-To: From: Matteo Croce Date: Sat, 9 May 2020 14:16:19 +0200 Message-ID: Subject: Re: [EXT] Re: [PATCH net-next 3/5] net: mvpp2: cls: Use RSS contexts to handle RSS tables To: Stefan Chulski Cc: "David S . Miller" , Maxime Chevallier , netdev , LKML , Antoine Tenart , Thomas Petazzoni , "gregory.clement@bootlin.com" , "miquel.raynal@bootlin.com" , Nadav Haklai , Marcin Wojtas , Linux ARM , Russell King - ARM Linux admin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 9, 2020 at 1:16 PM Stefan Chulski wrote: > > Hi, > > > > What do you think about temporarily disabling it like this? > > > > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > @@ -5775,7 +5775,8 @@ static int mvpp2_port_probe(struct platform_device > > *pdev, > > NETIF_F_HW_VLAN_CTAG_FILTER; > > > > if (mvpp22_rss_is_supported()) { > > - dev->hw_features |= NETIF_F_RXHASH; > > + if (port->phy_interface != PHY_INTERFACE_MODE_SGMII) > > + dev->hw_features |= NETIF_F_RXHASH; > > dev->features |= NETIF_F_NTUPLE; > > } > > > > > > David, is this "workaround" too bad to get accepted? > > Not sure that RSS related to physical interface(SGMII), better just remove NETIF_F_RXHASH as "workaround". > > Stefan. Hi, The point is that RXHASH works fine on all interfaces, but on the gigabit one (eth2 usually). And on the 10 gbit interface is very very effective, the throughput goes 4x when enabled, so it would be a big drawback to disable it on all interfaces. Honestly I don't have any 2.5 gbit hardware to test it on eth3, so I don't know if rxhash actually only works on the first interface of a unit (so eth0 and eth1), or if it just doesn't work on the gigabit one. If someone could test it on the 2.5 gbit port, this will be helpful. Regards, -- Matteo Croce per aspera ad upstream