Message ID | 20180425182301.GA13840@felix-thinkpad.cavium.com |
---|---|
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cavium.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=CAVIUMNETWORKS.onmicrosoft.com header.i=@CAVIUMNETWORKS.onmicrosoft.com header.b="gm5ZNu4r"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40WT8y2rk6z9s0v for <patchwork-incoming-netdev@ozlabs.org>; Thu, 26 Apr 2018 04:23:30 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756368AbeDYSX3 (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Wed, 25 Apr 2018 14:23:29 -0400 Received: from mail-by2nam03on0044.outbound.protection.outlook.com ([104.47.42.44]:18434 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755758AbeDYSXI (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 25 Apr 2018 14:23:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=35uidWn3vBFk6ZeZ03MmCdde15XmDDCF83i98yHMI1I=; b=gm5ZNu4rYOApyMU4e8yHFmwtD1ZvZW4L+a9ofJ3vui6X1Q6RXElTPvBl30Vo4tXyue1ZDwHe9tNVMD1/Vbb+RqouqAldw4fECtjcEUuzF/F0NG0aiWzgbh8d5/KdjqZXbqwdyXF5AH4bZr4vuEg5u2h7LmkJTe04LqMi36vtPuM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Felix.Manlunas@cavium.com; Received: from localhost (50.233.148.156) by BN7PR07MB4212.namprd07.prod.outlook.com (2603:10b6:406:b2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 25 Apr 2018 18:23:04 +0000 Date: Wed, 25 Apr 2018 11:23:01 -0700 From: Felix Manlunas <felix.manlunas@cavium.com> To: davem@davemloft.net Cc: netdev@vger.kernel.org, raghu.vatsavayi@cavium.com, derek.chickles@cavium.com, satananda.burla@cavium.com, felix.manlunas@cavium.com, intiyaz.basha@cavium.com Subject: [PATCH net-next 0/6] liquidio: enhanced ethtool --set-channels feature Message-ID: <20180425182301.GA13840@felix-thinkpad.cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BYAPR02CA0006.namprd02.prod.outlook.com (2603:10b6:a02:ee::19) To BN7PR07MB4212.namprd07.prod.outlook.com (2603:10b6:406:b2::16) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4212; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4212; 3:RnH/ZZRp8tPw+lXPYRL9E0e0Khu363fV1kGfxgwLU1A0h6LveJk9zH9ihQDJhVilmJLTPbU5q3nRXHzdyF7Hrlunkh24e61QtqOagr2Lj9HA8sHZ33O4elaiD6/PCoVEzdwR29tuKL7ZSIwDIaaEEou2OwtWDkEDaoNWQOQFysbeIE9/zpWn2Xe1HWWE96YicJseGjEjmdGtfFBX3Mt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IQ1cXB93SetcEVkjJJ9UIUAS8euJWlB5FNHC5ucQ+kO+2k3t2taURZwIFXCHpZP7/ZJ9qtOWW+Ss1Cciz3a6McmdQTfhaYUSsGz8GGyoZNcWvfipaWa8DBo2zosD6pmfnG1kfb; 4:AY21JFwm9jCUmX6mYHSMeBKdIpyeSB7vmytl2/X5mVDnXpU+0qOwhTSGOuUFw+ObcsOuG8ISTF04sFd7QnSi6WB9crD4z8MB2SSDb/TAUZVh3MGVbtt8Oxf4Ogqvs8yjCelrdQRwbBy/o48gE4mSY5gTIow8pOQJzdJugcs1plEkQ6yuQP+YCjHmZfO6qx2WHyhm95Xsh7431mrO9B96hcwD6xnm1uhjzti07AAfHJNQnda/uqRUxDeg8GxfGIslq/a6gAsQNPJRSZwyHfr/qw== X-Microsoft-Antispam-PRVS: <BN7PR07MB421266B8084347471001B5E2E78F0@BN7PR07MB4212.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:BN7PR07MB4212; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4212; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6069001)(396003)(39380400002)(346002)(39860400002)(376002)(366004)(189003)(199004)(486006)(186003)(956004)(1076002)(23726003)(476003)(6496006)(106356001)(16526019)(44832011)(26005)(58126008)(59450400001)(66066001)(8936002)(47776003)(6666003)(386003)(68736007)(86362001)(6116002)(3846002)(97736004)(6916009)(4326008)(105586002)(2351001)(2361001)(53936002)(50466002)(25786009)(16586007)(81156014)(81166006)(72206003)(6486002)(2906002)(33656002)(107886003)(76506005)(5660300001)(478600001)(305945005)(7736002)(316002)(52116002)(8676002)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4212; H:localhost; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4212; 23:4bl32qHgWATR5xmkXp44LQzqY4Gtl37etxnjTKfQCOV4CawMK5PjKJ/xVAlsgiJ/Zcf3hynW8Ia//xKtVdmbMobQK+UhK+qJScwiKlPmXWO5wHCv0FVht0xFzmdyd7UlA4/6kTVrEzbQuiFdr9H1e264w48YZttuvtpa75bTqXJhq2m9Og7qKbSIeMpkI/fcDjB1RhekfrsvoHKCvAdGFRQKNmn6c3rjF0g7NgvGFQa9YwXZwTWcLRloVz1tk7SJIc3gsjgAbAk5GxephuHPP3pMOOnodm5bkKVxMDV9C0hZoiXeopZrJfsJZvi/VajLK+NzZdyeYIvuPSBjDKT/2kkz3kmB+zLFroVi4kHPFhTpEzoWfdtU4zxxbVLp6gZjScc54eVhvUH6xAlMp7uwQjzk4iCXdj053/LOiG4HbOfPdA7E48eLy4xHr4P+2kQhZPzO5hKX1xe9ebblGetrBKVtMQpPJIKb7R53MHL540EYwNONevkGzxu1VaP4PpWrGzHWRw7CWyWWFVSOxSB3/FyBnQgjtnrxsvelKImi+PrR0tQLsEoiSwcUn5n0fB56jefp8BQCBIogS74d/6ky6Orlizczi7qDgDu72DIMZamDyn4VeP67MzWB+TrtOsaUENV1yM1b1xnECABty8UTfTLMZIpn5X1B+sSWBQ7oSrfNWDR8gCw+NSyYic/1X+N5hgMc7Mf0dJmv+TFC/jsjNueCruF7ITLpRDSVBvP5GbdSGqIQD75fHJkq+rlC+ScdqrS12Yaa9tYstTMIWxLHKd1sNGvk1lzAyNMIdbpCow1SQGVKbvKwgoZ440edH0bDggpDqLmlsxm56X1MmDZc7YlgugKcOuBhn/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ujXFHQglQtfAZRPksvEGKi68okZCHOf1+STJ4KheYlln6gg1TXOqFLFybbrc+H0qMMM7cY0fgOXzMfeNSF0IAYD79TpqrTxmejl8HBFcYlxP/Pb9TSuWnE9obDBy7zmIRUO+fXV1eeTsUiDBZhYYruJ18xEWJD83dc9Q==; 5:b+ztnWQkf6UnAtUqc+LWSS41jICak6U9HVdk2vpyRcGyADb4dn7x4jGkyCGLJ7GvFM8Fi4E1RCKXMnAkZD9+2tSMlajeWWqJfQjT8vjZAxcUK9IYMKIgRhLOvVaHJzn9ccy1by8cRWCGJfpNWgFJ9AtfB0LWVRkR1hoIMCLBT74=; 24:RFtyavR3m5qxks/lbnO4bK1BczPqpvKKOIBpy9L6KXtlOBx0Y1XaNMQ3ChLPxJwyZO+5isq6LvZRrf0rS31V8BbIbRLKP+43IwMO3MXRaNo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4212; 7:+M/6cvLX1qkT/00SJYy+F99+kd03MYLTj8fjmQEbPtzi7qN1eaGSw8DhdT07VBzDyZvq4ntRW4hZAGnMr25VqHAlKg7dqF2CGaQcpZJMXyVlKtiUhkelw2VaDt6nIxim5byhsUnsaPe5Cb8ExEbugXcF1146tBobbhtoCM9/seF2RAdVBoeYalYxj5D2CDXkvSbS40Zghp9VTMwHU1WGk1ndUaEdkolkZfqkJ6zXAvq0YR10J8x0N+jZXKQz57mp X-MS-Office365-Filtering-Correlation-Id: f13ad8d4-32cf-4cc6-50c2-08d5aad99644 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 18:23:04.6759 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f13ad8d4-32cf-4cc6-50c2-08d5aad99644 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4212 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
liquidio: enhanced ethtool --set-channels feature
|
expand
|
From: Felix Manlunas <felix.manlunas@cavium.com> Date: Wed, 25 Apr 2018 11:23:01 -0700 > From: Intiyaz Basha <intiyaz.basha@cavium.com> > > For the ethtool --set-channels feature, the liquidio driver currently > accepts max combined value as the queue count configured during driver > load time, where max combined count is the total count of input and output > queues. This limitation is applicable only when SR-IOV is enabled, that > is, when VFs are created for PF. If SR-IOV is not enabled, the driver can > configure max supported (64) queues. > > This series of patches are for enhancing driver to accept > max supported queues for ethtool --set-channels. Looks like patch #6 needs some warning fixes as per kbuild robot.
From: Intiyaz Basha <intiyaz.basha@cavium.com> For the ethtool --set-channels feature, the liquidio driver currently accepts max combined value as the queue count configured during driver load time, where max combined count is the total count of input and output queues. This limitation is applicable only when SR-IOV is enabled, that is, when VFs are created for PF. If SR-IOV is not enabled, the driver can configure max supported (64) queues. This series of patches are for enhancing driver to accept max supported queues for ethtool --set-channels. Intiyaz Basha (6): liquidio: Moved common function if_cfg_callback to lio_core.c liquidio: Moved common function list_delete_head to octeon_network.h liquidio: Moved common function delete_glists to lio_core.c liquidio: Moved common definition octnic_gather to octeon_network.h liquidio: Moved common function setup_glists to lio_core.c liquidio: enhanced ethtool --set-channels feature .../ethernet/cavium/liquidio/cn23xx_pf_device.c | 6 +- .../ethernet/cavium/liquidio/cn23xx_pf_device.h | 2 + drivers/net/ethernet/cavium/liquidio/lio_core.c | 158 +++++++++++- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 263 ++++++++++++++++++-- drivers/net/ethernet/cavium/liquidio/lio_main.c | 270 ++++----------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 206 +--------------- .../net/ethernet/cavium/liquidio/liquidio_common.h | 1 + .../net/ethernet/cavium/liquidio/octeon_device.c | 12 +- .../net/ethernet/cavium/liquidio/octeon_device.h | 2 +- .../net/ethernet/cavium/liquidio/octeon_network.h | 60 ++++- 10 files changed, 528 insertions(+), 452 deletions(-)