From patchwork Thu Nov 2 18:06:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Martins X-Patchwork-Id: 10039129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9BEC6600C5 for ; Thu, 2 Nov 2017 18:09:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9576C290DE for ; Thu, 2 Nov 2017 18:09:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A2B829216; Thu, 2 Nov 2017 18:09:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40D8F290DE for ; Thu, 2 Nov 2017 18:09:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAJtA-00056p-PH; Thu, 02 Nov 2017 18:06:48 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAJt9-00055z-O5 for xen-devel@lists.xen.org; Thu, 02 Nov 2017 18:06:47 +0000 Received: from [193.109.254.147] by server-9.bemta-6.messagelabs.com id 17/D7-30115-7BE5BF95; Thu, 02 Nov 2017 18:06:47 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeJIrShJLcpLzFFi42KZM10+UHdb3O9 Ig9Or5C2WfFzM4sDocXT3b6YAxijWzLyk/IoE1ow9C8+yFnzgqpj39Q5zA+NSzi5GLg4hgUlM Eru3X2GEcH4xSvR++MvcxcgJ5GxglFjXywuR6GKU2PW8ByzBJqAn0Xr+M5gtImAk0XZ8IjtIE bPAZkaJJ8tOMIIkhAX8JN6+2MICYrMIqEqsutXOBGLzCthJTPnYBNYsISAvsavtImsXIwcHp4 C9xIQZBRCL7SS612xhhygxluib1ccygZFvASPDKkb14tSistQiXXO9pKLM9IyS3MTMHF1DAzO 93NTi4sT01JzEpGK95PzcTYzAQGEAgh2MMy/7H2KU5GBSEuW9u/FXpBBfUn5KZUZicUZ8UWlO avEhRhkODiUJXiNg4AkJFqWmp1akZeYAQxYmLcHBoyTCKwaS5i0uSMwtzkyHSJ1iNObouHn3D xPHs5mvG5iFWPLy81KlxHnvxgKVCoCUZpTmwQ2CxdIlRlkpYV5GoNOEeApSi3IzS1DlXzGKcz AqCfP+B5nCk5lXArfvFdApTECneEn8ADmlJBEhJdXAONlj0YRHaZsr2V86u3/3sFdgY63KvrX k1faPJXfuyjB3Zomli594edyXJy+4ew33tRO/wgQ/eT3YFORqGmlt3cA4pY7RvvHN20J/c77p UdWVsm+72N//kD/7ttT+J6MNZ0TwvoN+PA1rNz58VXDKKzxq+kZPtS/6U5mcT4tNsoxb+mXGh hQ5JZbijERDLeai4kQAigKmo6ACAAA= X-Env-Sender: joao.m.martins@oracle.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1509646005!109182456!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 60623 invoked from network); 2 Nov 2017 18:06:46 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Nov 2017 18:06:46 -0000 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA2I6gXr017688 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:06:43 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vA2I6gse016784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:06:42 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA2I6fWl003050; Thu, 2 Nov 2017 18:06:41 GMT Received: from paddy.uk.oracle.com (/10.175.173.7) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Nov 2017 11:06:41 -0700 From: Joao Martins To: Xen Development List Date: Thu, 2 Nov 2017 18:06:10 +0000 Message-Id: <20171102180616.24084-3-joao.m.martins@oracle.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171102180616.24084-1-joao.m.martins@oracle.com> References: <20171102180616.24084-1-joao.m.martins@oracle.com> X-Source-IP: aserv0021.oracle.com [141.146.126.233] Cc: Joao Martins , Paul Durrant , Wei Liu , Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH RFC 2/8] public/io/netif: add directory for backend parameters X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The proposed directory provides a mechanism for tools to control the maximum feature set of the device being provisioned by backend. The parameters/features include offloading features, number of queues etc. Signed-off-by: Joao Martins --- xen/include/public/io/netif.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xen/include/public/io/netif.h b/xen/include/public/io/netif.h index 2454448baa..a412e4771d 100644 --- a/xen/include/public/io/netif.h +++ b/xen/include/public/io/netif.h @@ -161,6 +161,22 @@ */ /* + * The directory "require" maybe be created in backend path by tools + * domain to override the maximum feature set that backend provides to the + * frontend. The children entries within this directory are features names + * and the correspondent values that should be used backend as defaults e.g.: + * + * /local/domain/X/backend///require + * /local/domain/X/backend///require/multi-queue-max-queues = "2" + * /local/domain/X/backend///require/feature-no-csum-offload = "1" + * + * In the example above, network backend will negotiate up to a maximum of + * two queues with frontend plus disabling IPv4 checksum offloading. + * + * This directory and its children entries shall only be visible to the backend. + */ + +/* * Control ring * ============ *