Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957AbcLZOUs (ORCPT ); Mon, 26 Dec 2016 09:20:48 -0500 Received: from mail-sn1nam01on0048.outbound.protection.outlook.com ([104.47.32.48]:55199 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751894AbcLZOUq (ORCPT ); Mon, 26 Dec 2016 09:20:46 -0500 From: "Koteshwar Rao, Satha" To: Sunil Kovvuri CC: LKML , "Goutham, Sunil" , Robert Richter , "David S. Miller" , "Daney, David" , "Vatsavayi, Raghu" , "Chickles, Derek" , "Romanov, Philip" , Linux Netdev List , LAKML Subject: RE: [RFC PATCH 1/7] PF driver modified to enable HW filter support, changes works in backward compatibility mode Enable required things in Makefile Enable LZ4 dependecy inside config file Thread-Topic: [RFC PATCH 1/7] PF driver modified to enable HW filter support, changes works in backward compatibility mode Enable required things in Makefile Enable LZ4 dependecy inside config file Thread-Index: AQHSW2bxdFCsQ3f0FUOpQkRLcI6wnqESXvUAgAfv1wA= Date: Mon, 26 Dec 2016 14:20:21 +0000 Message-ID: References: <1482310011-1862-1-git-send-email-satha.rao@caviumnetworks.com> <1482310011-1862-2-git-send-email-satha.rao@caviumnetworks.com> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Satha.Rao@cavium.com; x-originating-ip: [111.93.218.67] x-microsoft-exchange-diagnostics: 1;DM5PR07MB2940;7:F/ELeuaJDxETRYKT8FqpzkGPUaZrMT69Irj4gGheb8zNqJaNDA16yvZxQKbwlheb86gvqNdCNjKvqDjvSv/RgGswzN2LbqYyLwB+dFamMpMYjzj4nADAFJcz7eOiz5/SBUsMpUhv6SurjRnjnyWh8TA4Vjrpd+WZEKzzdKMQGSOKzEtGcYaJ3I5ped9NQP1e5G+c/Fw3mvlwnORi3i7bEsdsweVboWsr77+uEnvq1ZSddr4SiChm3yuVLvHkxaF7zLInkd6tgcWRLhTi8ePbS+OUJ7Ko+yJO4UstzVWTWoglA3BaLv2uG8r0cNI3rdRQGpnS4+Kzv0szHvBKza8ijMtosQJfvja/3U37904XAQq4BfkN9SR6HxvkOJDdmMnLYzDtXp3x4LSG+yS8E0nXfyQe2+Vq3YnsFUd/3dQebTbCNyqCiwOcLnKI3Gn3ZXTAhwddE69SjY6urhb7I2JDMA== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39450400003)(377454003)(13464003)(199003)(189002)(76176999)(189998001)(76576001)(50986999)(54356999)(4326007)(66066001)(101416001)(3846002)(6116002)(102836003)(122556002)(97736004)(305945005)(74316002)(7736002)(33656002)(86362001)(9686002)(106356001)(92566002)(106116001)(68736007)(77096006)(2900100001)(6506006)(6436002)(229853002)(81166006)(3280700002)(5660300001)(8676002)(2950100002)(6916009)(38730400001)(7696004)(39060400001)(3660700001)(81156014)(2906002)(99286002)(8936002)(25786008)(105586002)(110136003)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2940;H:DM5PR07MB2842.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 4c1c18af-ce7b-42c0-8a37-08d42d9a5382 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR07MB2940; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148);SRVR:DM5PR07MB2940;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB2940; x-forefront-prvs: 016885DD9B spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Dec 2016 14:20:21.3908 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2940 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id uBQEKt0f006309 Content-Length: 2311 Lines: 56 Responses inline Thanks, Satha -----Original Message----- From: Sunil Kovvuri [mailto:sunil.kovvuri@gmail.com] Sent: Wednesday, December 21, 2016 5:05 AM To: Koteshwar Rao, Satha Cc: LKML; Goutham, Sunil; Robert Richter; David S. Miller; Daney, David; Vatsavayi, Raghu; Chickles, Derek; Romanov, Philip; Linux Netdev List; LAKML Subject: Re: [RFC PATCH 1/7] PF driver modified to enable HW filter support, changes works in backward compatibility mode Enable required things in Makefile Enable LZ4 dependecy inside config file > > #define NIC_MAX_RSS_HASH_BITS 8 > #define NIC_MAX_RSS_IDR_TBL_SIZE (1 << NIC_MAX_RSS_HASH_BITS) > +#define NIC_TNS_RSS_IDR_TBL_SIZE 5 So you want to use only 5 queues per VF when TNS is enabled, is it ?? There are 4096 RSS indices in total, for each VF you can use max 32. I guess you wanted to set no of hash bits to 5 instead of table size. SATHA>>> We enabled 8 queues for VF. Yes Macro name misleads it has to be hash bits, will change this in next version > #define RSS_HASH_KEY_SIZE 5 /* 320 bit key */ > > struct nicvf_rss_info { > @@ -255,74 +258,6 @@ struct nicvf_drv_stats { > struct u64_stats_sync syncp; > }; > > -struct nicvf { > - struct nicvf *pnicvf; > - struct net_device *netdev; > - struct pci_dev *pdev; > - void __iomem *reg_base; Didn't get why you moved this structure to the end of file. Looks like an unnecessary modification. SATHA>>> Previously we have some dependency, we look into this, and address in next verison > +static unsigned int num_vfs; > +module_param(num_vfs, uint, 0644); > +MODULE_PARM_DESC(num_vfs, "Non zero positive value, specifies number > +of VF's per physical port"); So what if driver is built-in instead of module, I can't use TNS is it ? SATHA>>> Still you can enable this special features by passing boot argument "nicpf.num_vfs=X" > > +/* Set RBDR Backpressure (RBDR_BP) and CQ backpressure (CQ_BP) of > +vnic queues > + * to 129 each Why 129 ?? RBDR minimum size is 8K buffers, why you want to assert BP when still ~4K buffers are available. Isn't 4K a huge number to start asserting backpressure ? SATHA>>> As CQ count was 4K entries, I used same BP value for both, will address this in next version