From owner-freebsd-current@FreeBSD.ORG Thu Nov 14 13:17:55 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 350D685F for ; Thu, 14 Nov 2013 13:17:55 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AF16C2A23 for ; Thu, 14 Nov 2013 13:17:54 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id rAEDHqla039028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 14 Nov 2013 17:17:52 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id rAEDHpJI039027; Thu, 14 Nov 2013 17:17:51 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 14 Nov 2013 17:17:51 +0400 From: Gleb Smirnoff To: Luigi Rizzo Subject: Re: RFC: adding queue number/size fields to ifnet Message-ID: <20131114131751.GI7577@FreeBSD.org> References: <20131114110107.GA36421@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131114110107.GA36421@onelab2.iet.unipi.it> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 13:17:55 -0000 On Thu, Nov 14, 2013 at 12:01:07PM +0100, Luigi Rizzo wrote: L> Hi, L> it would be useful to have a common place with the indication of L> NIC parameters such as number of tx/rx queues and their lengths. L> L> Various 10G drivers do include this information in various places L> in the softc, but there is no common place. L> L> I was wondering if there is any objection to either or both L> of these options: L> L> 1. four fields to the struct ifnet (field names are bikeshed material L> and irrelevant for the discussion): L> if_tx_queues, if_rx_queues, if_tx_slots, if_rx_slots L> L> 2. a sysctl-like get/set method for key-value pairs (key is always a L> string, value is possibly one of a few simple types such as L> INT64, UINT64, STRING) so that we extend the system in the future, L> e.g. to handle RSS, flow control and whatnot. L> Of course this also requires to settle on names of features. L> L> This is meant for low-frequency access to the parameters of the L> device, so performance is not an issue. The API for drivers to express to the stack their capabilities is planned to be implemented soon. Andre has grant from FF for that. -- Totus tuus, Glebius.