Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754278AbcLZOQS (ORCPT ); Mon, 26 Dec 2016 09:16:18 -0500 Received: from mail-sn1nam01on0043.outbound.protection.outlook.com ([104.47.32.43]:3840 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751628AbcLZOQQ (ORCPT ); Mon, 26 Dec 2016 09:16:16 -0500 X-Greylist: delayed 657 seconds by postgrey-1.27 at vger.kernel.org; Mon, 26 Dec 2016 09:16:15 EST 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 5/7] Multiple VF's grouped together under single physical port called PF group PF Group maintainance API's Thread-Topic: [RFC PATCH 5/7] Multiple VF's grouped together under single physical port called PF group PF Group maintainance API's Thread-Index: AQHSW2cADvMHs4Nv2EurvrCGM2YsqaESWO2AgAf0/uA= Date: Mon, 26 Dec 2016 14:16:04 +0000 Message-ID: References: <1482310011-1862-1-git-send-email-satha.rao@caviumnetworks.com> <1482310011-1862-6-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:QI7vaG2FD2xyrMtpyVbp4G1xhXcPLQD/PjzD5yFKP899oatDzckwmjQS6Ixv81t/lcjAk3n6qlfJj8YmPy4x6sSQKgh2qYIS9Xfaaur7ljQtzhyUUCWFQMAnryIp9QkLL5n57tLQ5lp6fRuMwg72fmWjUpHtH4gC0eR+AXTYoKJz2PmO8Gp08v8voBx3BkIwDK5S8GgfC7SSDnCF2aW0pZtWeOIKvVP9ZpQznqBsmd0c94ql166ghze6gRRwVtmAmyFBMoTcSHCgOB8PRtfq9DPZXGNPaaa7QtC3mf/NeLjz1LJuVwssDYwGtFQ7ZCRZeZ3LQlWrSrSmz/ZRUI2dIcywfkCewY0vI20aXTNHwF7fpR1h0X3KkAsvBfg0nxLjhB86Xi3D+0Qx63eTfV2f+1AQSLZGh1ljzkv87tdsua5iypGVUX/7JxCVHz6OSwhwEM2LF/mbQg4Lv/TdzDRhGw== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39450400003)(189002)(13464003)(377454003)(24454002)(199003)(6506006)(229853002)(6436002)(77096006)(68736007)(92566002)(106116001)(2900100001)(25786008)(8936002)(2906002)(81156014)(99286002)(110136003)(105586002)(8676002)(3280700002)(5660300001)(81166006)(3660700001)(7696004)(39060400001)(2950100002)(38730400001)(6916009)(122556002)(102836003)(3846002)(6116002)(101416001)(97736004)(189998001)(76176999)(76576001)(4326007)(66066001)(50986999)(54356999)(86362001)(9686002)(106356001)(74316002)(305945005)(33656002)(7736002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2940;H:DM5PR07MB2842.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-correlation-id: 2b95cc33-f711-47f0-5de1-08d42d99ba34 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR07MB2940; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; 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:16:04.1961 (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 uBQEGNWb004918 Content-Length: 1007 Lines: 27 Thanks for suggestion. Will clean up code in next revision Thanks, Satha -----Original Message----- From: Sunil Kovvuri [mailto:sunil.kovvuri@gmail.com] Sent: Wednesday, December 21, 2016 4:44 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 5/7] Multiple VF's grouped together under single physical port called PF group PF Group maintainance API's On Wed, Dec 21, 2016 at 2:16 PM, Satha Koteswara Rao wrote: > +struct tns_global_st { > + u64 magic; > + char version[16]; > + u64 reg_cnt; > + struct table_static_s tbl_info[TNS_MAX_TABLE]; }; > + > +#define PF_COUNT 3 > +#define PF_1 0 > +#define PF_2 64 > +#define PF_3 96 > +#define PF_END 128 Some comments please ... what is 0, 64, 96 ?? You can read PCI_SRIOV_TOTAL_VF from PCI config space instead of defining PF_END with 128.