From patchwork Mon Feb 13 20:30:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nelson, Shannon" X-Patchwork-Id: 13138973 X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31884C6379F for ; Mon, 13 Feb 2023 20:30:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbjBMUak (ORCPT ); Mon, 13 Feb 2023 15:30:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbjBMUah (ORCPT ); Mon, 13 Feb 2023 15:30:37 -0500 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2071.outbound.protection.outlook.com [40.107.101.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ECBE6EB1 for ; Mon, 13 Feb 2023 12:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F1oDgAxsKoAiqE6B9kcSu3bLBS+xrkNLGcE4Xm1cFGjFB8X8mC50YrxVRUJ4Bo861/xxnC63GZBPLDFUKTGKqq8nQ+Xl2NTBk1p72l/lHnoym5LM6kU578rhQyXfQzYBoTaYTIjxc59QZmqaZipUbRDh6RJZ/+Z92Jgws6f/5mSwtZPdqqqHGHfc3ltNyPNRI5Ofxw2ZPzp1TYzVe67IF394ARrFDFsRBtEKmxWF95VQ7ZZpaWEobQAxgnYT29tDjmp2cgJRAyJtnrG92egux9J5MHgEeqWDLzv8nFsILPgXEmM95VgFHfQ34mR1wpS55XWHn+TGTd7teoyYhlB1zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g5KfPVbq8/0cZsu3P/bqlVCrbbPH8dnaZSv96i/rW3s=; b=kTAYjtOJTveWbAu/bsUUjlScrv058M1Loy6FOpTH5y6StR8Otiee+LrQ8olnmfoY38uqj2OEq07mq6/bX4x1IwSRDXEAMstSmPqcgiyiF/RPIOjmRseSz5TIPuqmRK3HQA0jmC9l/XBu9Xys3xXIbVyVYGUgiRi61CZdEw6COy60fHKHo1XTDu4+22jhc/m7Io+/DuJ0LoRhuIJKy8vKurEeQK3dP8+Y7EDii1SXDcTapUW+h/nCmERG+LnedczCJsRs8wb1b9Q1qEGNSfsgnlEcmZODmV5/GhvtmgjzSp+q3iq7GAbYJ/1uMAsOBHTRyp9/mcglIGRuZsyOitstZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g5KfPVbq8/0cZsu3P/bqlVCrbbPH8dnaZSv96i/rW3s=; b=gSzjKEOc4n2wPuzFNypX+XcFTZFIfLCb9jgSITo57jcU0dZCLHsagBsFNjjZizpfBZ/uTbHuOQZT/fgBch2L1JXca49ylnUAS19LYTMDLwi0qJiiWamLeJYd0tnAEbfitvpxEOiqWDnRyZoA5DmPP2vSm4w18HQbyOLsiWqq/4c= Received: from DM5PR07CA0069.namprd07.prod.outlook.com (2603:10b6:4:ad::34) by DM4PR12MB5985.namprd12.prod.outlook.com (2603:10b6:8:68::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24; Mon, 13 Feb 2023 20:30:32 +0000 Received: from DS1PEPF0000E649.namprd02.prod.outlook.com (2603:10b6:4:ad:cafe::5f) by DM5PR07CA0069.outlook.office365.com (2603:10b6:4:ad::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24 via Frontend Transport; Mon, 13 Feb 2023 20:30:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF0000E649.mail.protection.outlook.com (10.167.18.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6111.8 via Frontend Transport; Mon, 13 Feb 2023 20:30:32 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 13 Feb 2023 14:30:31 -0600 From: Shannon Nelson To: , , , CC: , Shannon Nelson Subject: [PATCH ethtool-next 1/2] ethtool: uapi update for RX_PUSH ringparam attribute Date: Mon, 13 Feb 2023 12:30:07 -0800 Message-ID: <20230213203008.2321-2-shannon.nelson@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230213203008.2321-1-shannon.nelson@amd.com> References: <20230213203008.2321-1-shannon.nelson@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E649:EE_|DM4PR12MB5985:EE_ X-MS-Office365-Filtering-Correlation-Id: 68c871e6-120a-4f7d-c1e3-08db0e0127ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kpzF1v1n4Wysz/uEw7yCKm3Giv7YndzMQo/txg6D7vGrZ7YIQ1PY5efRVggjRBgdYi8nWYjjZreJi89vrS9GpiU3luAKQ9e5VHbQ59sb+cU5ibpKH1VNEzJ6u38d/QDRgQj152WNxagarViUL1LqbBzW1xvfmV/TE11LTvXK3yBTS16P+Cqdi9SXfXLGHL7jEXIs0StgKRQmP0PBMZDistlkwaXFNqSSJJz4GAS2vJrELrQn8KISOl99+NRf6JZnJu5pSu1C64IPyD4AQCStaWCs81+CEXrBITfWdf8HOTjHF6goXGEQbAh7zo+WHXwr9H4RFWuGnycgi5wNbnQFg/AI5QT3XxqchLVQ9jSmUVPHVrALOQnPU/hYV4A7QKFFrGSA565jVvzxmoPQQ14HArUOHxWZvwxQdDTQtl/pOStwCo8hTNUvKtL4S8mzwBbzN2Rs0jwZQzcA/o10qIWVnG1uQEoygL2/FYryKJUHq7z/wCkwFV1B7nXpDskLBnojRdaxIREX+E6DFhX3Dxe4SHJkba6fQtyC7FoMeHB1cKKLFQQMwpTesG1vljRxuXqjChS91y26HlA4ds0H2XHkYtJNFvaF0KwRyjL0UvdLxitdA8hzOzsPQKrTiWEpnnCh2+yL58zkx4V8rfyOCwsrC5XnlBlSgKUCbHm3iYet9N/v/e0selnU3xynhfm66hvX3WwK/CsA66p+xH3c2oBBi0ZBcFQmRBMC0LpmUfAGNIINQbRkIob4uMhKDkODa0a2mDGyjFmnQBAo6RxO33N3jeOg09qPxCiDHcbFjXeekXg= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(346002)(136003)(376002)(39860400002)(396003)(451199018)(46966006)(36840700001)(40470700004)(16526019)(36756003)(70586007)(4326008)(1076003)(8676002)(54906003)(110136005)(316002)(86362001)(40460700003)(336012)(186003)(26005)(2616005)(40480700001)(426003)(47076005)(81166007)(41300700001)(44832011)(4744005)(478600001)(6666004)(70206006)(2906002)(36860700001)(82740400003)(356005)(5660300002)(8936002)(82310400005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2023 20:30:32.7631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68c871e6-120a-4f7d-c1e3-08db0e0127ca X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E649.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5985 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Adds the new uapi ETHTOOL_A_RINGS_RX_PUSH attribute as found in the next-next commit 5b4e9a7a71ab ("net: ethtool: extend ringparam set/get APIs for rx_push") Signed-off-by: Shannon Nelson --- uapi/linux/ethtool_netlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h index 4cf91e5..13493c9 100644 --- a/uapi/linux/ethtool_netlink.h +++ b/uapi/linux/ethtool_netlink.h @@ -356,6 +356,7 @@ enum { ETHTOOL_A_RINGS_TCP_DATA_SPLIT, /* u8 */ ETHTOOL_A_RINGS_CQE_SIZE, /* u32 */ ETHTOOL_A_RINGS_TX_PUSH, /* u8 */ + ETHTOOL_A_RINGS_RX_PUSH, /* u8 */ /* add new constants above here */ __ETHTOOL_A_RINGS_CNT, From patchwork Mon Feb 13 20:30:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nelson, Shannon" X-Patchwork-Id: 13138972 X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59F71C636CC for ; Mon, 13 Feb 2023 20:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjBMUai (ORCPT ); Mon, 13 Feb 2023 15:30:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229982AbjBMUag (ORCPT ); Mon, 13 Feb 2023 15:30:36 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2087.outbound.protection.outlook.com [40.107.92.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDEAB30D5 for ; Mon, 13 Feb 2023 12:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PoZOCp6l1Jtn1ofAS58CIXO6ZfIEwrn7EC/wZzFuRfw4WROBGH5E2YUEBYvqCbpP0Ls1l+vdW2gysDEZ/JVfnG/ZnSMG/T0xTHn5OEr2RiZrYcmc06BEn3IXdibylZQa+eLhMgutjcCJdZCmJ2ZeNitZ8UV44zRVZGSLSEVtNUTl2QTECEQZKE0QFM0qkbUT4NPyALb780Wuu+ZXT16tJt7uICP6vLt4LBF0K5euZ2yJqHW5cprFQY86sI1QWjG7tgnQU6w7foO78fimcY0LtPwnJOnL0eTK2+VL1+z/FgSge8D5oM+wAEpEL11hKc1p70s/W0BPHNyJ7HBJC0R9Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dY1i2zx/d6w21LyxcOO2zVxW9zSAQ1Oq7EzIfQ/ixys=; b=GbAmnqPCSrPaEWYwv9uVckCZfZzdkdjuDLk1tPsHHCyvwa/4XJISy+CBBH+rNIBuOXFaRdsOnLbiaAL59VjY/AGu6Q1ENC+xOh9Mv0AO5KYBXIzQVfrFvyFF8/yew4jA2eX1yMuMkmJI/6wZRDizTGMukCXsPtdaL3yyrufp7vcaAu880gR2yt05zLmG29qx8Nq4nNcKdyrgb13GwQSVtave8JyzF8kOlvUwTPjYiGay+44pHzFVUUe3qLC70zjwHJuQjZqXbMtXycwE9L71hbCE+FhdAiXuZbeBjiZHSx08IzCiLGJIs5E45p1HIxlrF6aboS9ljh5USvSP85AoCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dY1i2zx/d6w21LyxcOO2zVxW9zSAQ1Oq7EzIfQ/ixys=; b=LSpT6agAkFSHQchk1szIHGdQRZEyBBLjyK4afziQ7ZsN4+vv/2536teAhKdXM/+fWXQfgRlQ8X2Ahcm0jCl3sl5DdyrWUrs/Pkf1RJgRngyHJZyr7svTThms0qvilfZqwzQ3/ugOxDVGis0BIT5j3EhKBRS5HnUlJYFfDIAiJHY= Received: from DM6PR08CA0017.namprd08.prod.outlook.com (2603:10b6:5:80::30) by DM4PR12MB7718.namprd12.prod.outlook.com (2603:10b6:8:102::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.23; Mon, 13 Feb 2023 20:30:33 +0000 Received: from DS1PEPF0000E64C.namprd02.prod.outlook.com (2603:10b6:5:80:cafe::8e) by DM6PR08CA0017.outlook.office365.com (2603:10b6:5:80::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24 via Frontend Transport; Mon, 13 Feb 2023 20:30:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF0000E64C.mail.protection.outlook.com (10.167.18.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6111.8 via Frontend Transport; Mon, 13 Feb 2023 20:30:33 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 13 Feb 2023 14:30:32 -0600 From: Shannon Nelson To: , , , CC: , Shannon Nelson Subject: [PATCH ethtool-next 2/2] ethtool: add support for get/set rx push in ringparams Date: Mon, 13 Feb 2023 12:30:08 -0800 Message-ID: <20230213203008.2321-3-shannon.nelson@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230213203008.2321-1-shannon.nelson@amd.com> References: <20230213203008.2321-1-shannon.nelson@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E64C:EE_|DM4PR12MB7718:EE_ X-MS-Office365-Filtering-Correlation-Id: 50dbf22b-70ff-4a44-ff49-08db0e012847 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B5Evjx2M/r01sQ9Vjb7f4GxgmnKY0PzEZ06NCLiLUiPxxYIaxVUCxIYhrcxiV84gn40zWKEkAglY7msB844Pmxveahu4EV4cqXklTSHtBzCV2ozQH/K48kN1wMaNpAnKoVK4pueV39/MQSKlANjQdq6TEZSzOE3kICcVIqaHGezY/ttb3ZPuhGzKs9IXBS7tO+Z4OBuoPpB9XYHiVpsYePsAvZu4HFwXYqkYqC/TZV21g3J0/TkhLlzNmVXsM+EDTuS6g7UuFXG4VPE/2uuOpNAH9Rz1C5+8m61ymH61d+wJGcEuBurhmdHyGmhkEvtELE0KWAPhf/FfKAoALZ+BoD2iHfRJ7qL6rtjGIISwEw3fQuzWX2HZs1jvMwS7KI/DH+FhWRMr3OS89VojYo2z14XEQtmhB3kjFnfi7RlYWAL3r9f6+w2qJnqqI2dvoHliM+2qi5mABemfqm3qjCSADKuvAO6Nl/4LfUXLMRZjZtPUdYQKQVKfcGUFYafw88b65JqqtNxnAxdJPFfNVzCB1QBKKBVbMhABFL5uvtJBesd7zlJFBlHZkBHo2RAzS6xz8FD59uoPURHNvzZg7PvkYH+Bp+aNSeZKRxmSqXIIPaI+2N6hYC0ki0zi9maz1ORsMuBnKrWa1812o6dR2WVToD3NZcNbAyGi3F2C62xgRmmMQ8oVsv4x8KAR+wdNTO9kiM5yibIzV4q3UZxpY/WRROxUnNlg+1cL0HVKMoPJTnQ= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(136003)(39860400002)(396003)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(36756003)(2906002)(26005)(36860700001)(83380400001)(186003)(2616005)(1076003)(16526019)(86362001)(40460700003)(478600001)(47076005)(70206006)(6666004)(336012)(70586007)(4326008)(426003)(8676002)(40480700001)(44832011)(316002)(41300700001)(5660300002)(8936002)(54906003)(82740400003)(81166007)(356005)(110136005)(82310400005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2023 20:30:33.5526 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50dbf22b-70ff-4a44-ff49-08db0e012847 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E64C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7718 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz RX Push was recently added to the kernel's netlink messages along side tx push, and in use in the ionic NIC driver. Add support for "ethtool -G rx-push on|off" and "ethtool -g " to set/get rx push mode. Signed-off-by: Shannon Nelson --- ethtool.8.in | 4 ++++ ethtool.c | 1 + netlink/desc-ethtool.c | 1 + netlink/rings.c | 7 +++++++ 4 files changed, 13 insertions(+) diff --git a/ethtool.8.in b/ethtool.8.in index 116f801..1708053 100644 --- a/ethtool.8.in +++ b/ethtool.8.in @@ -201,6 +201,7 @@ ethtool \- query or control network driver and hardware settings .BN rx\-buf\-len .BN cqe\-size .BN tx\-push +.BN rx\-push .HP .B ethtool \-i|\-\-driver .I devname @@ -621,6 +622,9 @@ Changes the size of completion queue event. .TP .BI tx\-push \ on|off Specifies whether TX push should be enabled. +.TP +.BI rx\-push \ on|off +Specifies whether RX push should be enabled. .RE .TP .B \-i \-\-driver diff --git a/ethtool.c b/ethtool.c index c81c430..cdb9c2a 100644 --- a/ethtool.c +++ b/ethtool.c @@ -5750,6 +5750,7 @@ static const struct option args[] = { " [ rx-buf-len N]\n" " [ cqe-size N]\n" " [ tx-push on|off]\n" + " [ rx-push on|off]\n" }, { .opts = "-k|--show-features|--show-offload", diff --git a/netlink/desc-ethtool.c b/netlink/desc-ethtool.c index d72974e..2d8aa39 100644 --- a/netlink/desc-ethtool.c +++ b/netlink/desc-ethtool.c @@ -158,6 +158,7 @@ static const struct pretty_nla_desc __rings_desc[] = { NLATTR_DESC_U8_ENUM(ETHTOOL_A_RINGS_TCP_DATA_SPLIT, rings_tcp_data_split), NLATTR_DESC_U32(ETHTOOL_A_RINGS_CQE_SIZE), NLATTR_DESC_BOOL(ETHTOOL_A_RINGS_TX_PUSH), + NLATTR_DESC_BOOL(ETHTOOL_A_RINGS_RX_PUSH), }; static const struct pretty_nla_desc __channels_desc[] = { diff --git a/netlink/rings.c b/netlink/rings.c index d51ef78..57bfb36 100644 --- a/netlink/rings.c +++ b/netlink/rings.c @@ -57,6 +57,7 @@ int rings_reply_cb(const struct nlmsghdr *nlhdr, void *data) show_u32("rx-buf-len", "RX Buf Len:\t", tb[ETHTOOL_A_RINGS_RX_BUF_LEN]); show_u32("cqe-size", "CQE Size:\t", tb[ETHTOOL_A_RINGS_CQE_SIZE]); show_bool("tx-push", "TX Push:\t%s\n", tb[ETHTOOL_A_RINGS_TX_PUSH]); + show_bool("rx-push", "RX Push:\t%s\n", tb[ETHTOOL_A_RINGS_RX_PUSH]); tcp_hds_fmt = "TCP data split:\t%s\n"; tcp_hds_key = "tcp-data-split"; @@ -154,6 +155,12 @@ static const struct param_parser sring_params[] = { .handler = nl_parse_u8bool, .min_argc = 1, }, + { + .arg = "rx-push", + .type = ETHTOOL_A_RINGS_RX_PUSH, + .handler = nl_parse_u8bool, + .min_argc = 1, + }, {} };