From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Falcon Subject: [PATCH net-next 0/3] ibmvnic: Implement driver-defined queue limits Date: Fri, 28 Sep 2018 18:38:23 -0500 Message-ID: <1538177906-17068-1-git-send-email-tlfalcon@linux.ibm.com> Cc: nfont@linux.vnet.ibm.com, Thomas Falcon To: netdev@vger.kernel.org Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56484 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbeI2GEj (ORCPT ); Sat, 29 Sep 2018 02:04:39 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8SNY4ZD103561 for ; Fri, 28 Sep 2018 19:38:34 -0400 Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) by mx0a-001b2d01.pphosted.com with ESMTP id 2msw10a2b3-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Sep 2018 19:38:34 -0400 Received: from localhost by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Sep 2018 17:38:33 -0600 Sender: netdev-owner@vger.kernel.org List-ID: In this patch series, update the ibmvnic driver to use driver-defined queue limits instead of limits imposed by the Virtual I/O server management partition. For some deviced, initial max queue size and amount limits, despite their definition, can actually be exceeded if the client driver requests it. With this in mind, define a private ethtool flag that toggles the use of driver-defined limits. These limits are currently more than what supported hardware will likely allow, so the driver will attempt to get as close as possible to the user request but may not fully succeed. Thomas Falcon (3): ibmvnic: Increase maximum queue size limit ibmvnic: Introduce driver limits for ring sizes ibmvnic: Add ethtool private flag for driver-defined queue limits drivers/net/ethernet/ibm/ibmvnic.c | 129 +++++++++++++++++++++++++++---------- drivers/net/ethernet/ibm/ibmvnic.h | 9 ++- 2 files changed, 102 insertions(+), 36 deletions(-) -- 2.12.3