From patchwork Thu Nov 3 11:33:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Somisetty, Pranavi" X-Patchwork-Id: 14824 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp471104wru; Thu, 3 Nov 2022 04:35:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+L2KyW+BCOQZ8IDtLBjKJg6IVNv4apd5BWh5OO23GQfcnbv9ZGoyfuTcT+DbiNh5ydnyC X-Received: by 2002:a05:6a00:999:b0:56c:3d0d:96fe with SMTP id u25-20020a056a00099900b0056c3d0d96femr30074543pfg.12.1667475334811; Thu, 03 Nov 2022 04:35:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667475334; cv=pass; d=google.com; s=arc-20160816; b=Q31jvyCYOgL3Y0bbA0Uq1v+6+pYucU10c2ImQIk7M0GKDijgXdYH0a91QdFtzo33CP e2eNCBXk4G2gtYDy3jYqXQSIzjoiD9f24JurJWj9UJ7zv/fSmya3OgeYoyYONuXw3GZj pEv1AAOhIuOhvIryG45tw7YglppOM/shQacRk7ygI2sONykcZcGAirx6IxvZcLI+zJgS VCAp44Np5laFOFWkoKlccrqjIa+kSIMwB0gnsKhxD24+ArVo5FgFQxy3S2gZeHz2LOFy 5h2VBF7OQJLQj5bVc6RISucgeSPn3EvvGQyjOsleta1v2gSUeImlkQ0XWLid1zMzgcY2 UuMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k1f1RHVgxteoHgG/rt4MXhHsn89bG9adaJ/8nkAE/Vo=; b=Tg0MjSczKOd2zH4KkXiLEgZWrWSQYHer66WQFjhLjf8YsKJSDHP+8/aO+YVoi10I+S IekNnlr06ea1pt0+faG9zOyiQIptwXSocp+T0GI44YWpQ6w5u9cG0XLXw23+mHXsMqP+ dNcmVRDN+nVCrGv2ZGXMtcJJ/03tGMgqOUZjYaRT3hyf/VcmH4iwOEIBpuToiIXmABLH FB7MQeODqPPRiaDMVe71NVwDNe1hX4yau+6h7A4PwCHTfAPW64CCVuqGLfDMDcxjryn1 Wgv7nceBdCFLrqloNVipKidM32QEBtwoGH9N9z6JYOhVAX5VbIVwG3h4/m27DqfwemXa pIFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=POM9Uhb3; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o125-20020a634183000000b0046fad96095esi799607pga.478.2022.11.03.04.35.20; Thu, 03 Nov 2022 04:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=POM9Uhb3; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231222AbiKCLec (ORCPT + 99 others); Thu, 3 Nov 2022 07:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiKCLeZ (ORCPT ); Thu, 3 Nov 2022 07:34:25 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E185612098; Thu, 3 Nov 2022 04:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WbZupPO0hseVC6vofa62bXAaDdHqdVN2hR72PL5UlH2CjBMQHn5rNlxJ+0sAP0HI8LYiRIvOxmawVgXBRpj7aR2xsM01vQV6v+eVjrDM2vlOqDJWVDfqTMWa/vkMEQoerAz1u+tS7Mq3eflSIpfZEEgRv0zEO91znx3iNPys7E+eMxh5zHyTLbHRHVStAm+f6u65kx+wbTRpsu+KgaDBCZOFZrxkTj5V2L57hYXM6WAT89xr2FjgAP72YI0axbg1Gzy5joUBQb3hU/+H6npy1SJLnKtI8vlB4E2yVsKH+oG46K9d/8mHVTh/ks2ENXK1sic3cTc07A/2FFCdqzvRMA== 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=k1f1RHVgxteoHgG/rt4MXhHsn89bG9adaJ/8nkAE/Vo=; b=I0f8tvgMXPUSrsun7jHnIdDy0Idvq1bkJvcelKoiWftEcyRS1/fZfjgSXs3NoKucKp3/I4OgmJ8B9eSp5sebjSXaoFqa6CjtvEr8jGjenMGRmUiS8bolmK04HXGDRgDK3YVFEyeO14tvVtyg/QTvwF5QCgQq8YLNyfnCNQyj58lAV994N9M0V1xqkorCmQbcePyVTAGHkD6PjYXq6Kh/wd0MX5n6xRUepqqCyEwDH/Wz1/LODXJbjAIhWR1rHXNI9lL0acpQl3LEMwMTm/ez2rr/QjOa9SwM+SF9I/9wwp7JY3NZnZsZBos8zp8jppbZbpa9k1krLMzvujVkBeHW1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net 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=k1f1RHVgxteoHgG/rt4MXhHsn89bG9adaJ/8nkAE/Vo=; b=POM9Uhb3+5FDDV4XIlITSI3b2dcPiVsBsNC6vPGTWMUtZQZTA0qGPdNwwUFv0x4G3RYx7HnHSUxDBLsZaFroi2S35jOw4n0idgHpcKULxX1nImWagS1BQ3lnu4FVMbPVtP4QvQHFySix/PaO1O6CE7xYFGhLhjbo7zf521Bi13c= Received: from BN9PR03CA0413.namprd03.prod.outlook.com (2603:10b6:408:111::28) by CY8PR12MB7633.namprd12.prod.outlook.com (2603:10b6:930:9c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Thu, 3 Nov 2022 11:34:21 +0000 Received: from BN8NAM11FT090.eop-nam11.prod.protection.outlook.com (2603:10b6:408:111:cafe::46) by BN9PR03CA0413.outlook.office365.com (2603:10b6:408:111::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22 via Frontend Transport; Thu, 3 Nov 2022 11:34:21 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT090.mail.protection.outlook.com (10.13.177.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Thu, 3 Nov 2022 11:34:21 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 06:34:18 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 04:33:55 -0700 Received: from xhdpranavis40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Thu, 3 Nov 2022 06:33:52 -0500 From: Pranavi Somisetty To: , , , CC: , , , , , , Subject: [RFC PATCH net-next 1/2] include: uapi: Add new ioctl definitions to support Frame Preemption Date: Thu, 3 Nov 2022 05:33:47 -0600 Message-ID: <20221103113348.17378-2-pranavi.somisetty@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221103113348.17378-1-pranavi.somisetty@amd.com> References: <20221103113348.17378-1-pranavi.somisetty@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT090:EE_|CY8PR12MB7633:EE_ X-MS-Office365-Filtering-Correlation-Id: f0ac158f-82b9-48ef-0039-08dabd8f59e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ubzZ1xq/JDxj/4DjMvcKUVSFn/VmIXRd3t9gewbigVTEz9DdvBzMhoUiaehHasuPMhartGGmoXcW8PypRnXwif52Su7NQIZTKbphD0ViYx5PbFfHBdF/WERhojIfGD8bvuCp/TXSYurnC3ITmhm0ADUeKUDM3z6jx3THbvHj3LjiDGVirCZWvgalrQagzVq54HmKoMKRtUTTx8ixgZoUg/mZis43+pFqnnP3fL5MTN6taorgo6iANjJBR8soSIELpkxaI+rRWHJz8GqdBI+No18zlNmxtbscf7j+JN/jQ7ZrvbaNAGth/qp3+jYLgFpD/H3QkmKEWGNnWxGEKdkyvQgFz1ehqN9nt2UjcpPlVddYkK1sPybdV1lhy4wbEb1/UIcIppirQqgau0WWnxBL2VNV/rgVL6AAynxR5HItDHX8JNTCyGt1OdUofLTrYSE/k8TVuyQ/tl9cOqSUQfHMcHirxwK+YYV+WMZcLIiea9TCHXiUE+9cjsKHICAZNzIF1ny4lbzlhsuIZIYKUnxLj/Yy4ZOxH2y875dVqcs0dW+ny5bHX24bDiV8uDbFPGvYKuWzVHD3V00lxyJAHsxZG9824p750fdGDSFbTqvhs66CKdaHy+E+cm4IXUDmGnpSlSzQZje4TsRq4GuIp2u0zp6tfZmgD+v88zv/dAzCJLGp0D2VvyQSLvsJ731erwpMLI/hAs42I/Hprkf/aHPmut5i7qYLy7Sck0MpK6+k44uqBoCTsJzMuR+54Kn1a3lulQDnbYRupuqdQghIJsiiXjGgdS+X++doJldilgtF6s0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(376002)(396003)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(2616005)(336012)(1076003)(186003)(26005)(6666004)(36860700001)(316002)(47076005)(426003)(83380400001)(44832011)(40460700003)(40480700001)(2906002)(54906003)(110136005)(82310400005)(478600001)(70206006)(41300700001)(5660300002)(8936002)(70586007)(4326008)(8676002)(81166007)(36756003)(86362001)(356005)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2022 11:34:21.1703 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0ac158f-82b9-48ef-0039-08dabd8f59e0 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT090.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7633 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748474617001426527?= X-GMAIL-MSGID: =?utf-8?q?1748474617001426527?= Add new ioctl definitions, SIOC_PREEMPTION_EN, SIOC_PREEMPTION_CTRL, SIOC_PREEMPTION_STS, SIOC_PREEMPTION_COUNTER, to support IEEE 802.3br. Signed-off-by: Pranavi Somisetty --- include/uapi/linux/sockios.h | 6 ++++++ net/core/dev_ioctl.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/sockios.h b/include/uapi/linux/sockios.h index 7d1bccbbef78..382f959fb371 100644 --- a/include/uapi/linux/sockios.h +++ b/include/uapi/linux/sockios.h @@ -153,6 +153,12 @@ #define SIOCSHWTSTAMP 0x89b0 /* set and get config */ #define SIOCGHWTSTAMP 0x89b1 /* get config */ +/* Frame Preemption, IEEE 802.3br */ +#define SIOC_PREEMPTION_EN 0x89b2 /* enable frame preemption */ +#define SIOC_PREEMPTION_CTRL 0x89b3 /* configure preemption parameters */ +#define SIOC_PREEMPTION_STS 0x89b4 /* get preemption status */ +#define SIOC_PREEMPTION_COUNTER 0x89b5 /* read preemption statistics */ + /* Device private ioctl calls */ /* diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c index 7674bb9f3076..46fb963cd13a 100644 --- a/net/core/dev_ioctl.c +++ b/net/core/dev_ioctl.c @@ -409,7 +409,11 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, void __user *data, cmd == SIOCGMIIREG || cmd == SIOCSMIIREG || cmd == SIOCSHWTSTAMP || - cmd == SIOCGHWTSTAMP) { + cmd == SIOCGHWTSTAMP || + cmd == SIOC_PREEMPTION_EN || + cmd == SIOC_PREEMPTION_CTRL || + cmd == SIOC_PREEMPTION_STS || + cmd == SIOC_PREEMPTION_COUNTER) { err = dev_eth_ioctl(dev, ifr, cmd); } else if (cmd == SIOCBONDENSLAVE || cmd == SIOCBONDRELEASE || From patchwork Thu Nov 3 11:33:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Somisetty, Pranavi" X-Patchwork-Id: 14825 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp471130wru; Thu, 3 Nov 2022 04:35:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5b18dWt2QCKLlpmJXrKYoVtrM20lU3BrUkOUfHwJ7xpzFQ4ArPJUm9PzKxFw6GbtVAeBBV X-Received: by 2002:a17:902:7689:b0:187:48d:d9be with SMTP id m9-20020a170902768900b00187048dd9bemr9525310pll.102.1667475338514; Thu, 03 Nov 2022 04:35:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667475338; cv=pass; d=google.com; s=arc-20160816; b=zevdIGCKDDdbWX6nhQCTNnpnoPZu4Es8EFbOFhYX5lKFd4n8Hm4vzhwYaTIjR8eupk 8G1JxWwZ2b3cHjXAyAxOVOkhW1NxEdFtMvoYSJ1L3ghyAqLMaGQg4jDQYopOSH8xiuvO C2ueE87RIpBrbuk+y8OmBC/ffKmlRC0TsS98ErcjEU8z77SM1OH07bqjqcOObHqbwEIC 4UbWj65dmC44LRpJQOarLklD1IcEVrOBNKeWhol4V3TU7sj2moO0YYmGvLAjI7zbAzll gBK05jyBL5olCfhGd7Y8K5c0fAhJEURiY0L2e9+UM4vMtJdh/ET+pGNN5vakHECBqxQc Hs0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=80sUDZgLqWj9NTbV3MXrxl0hZfKhyGxhpo19Q7lGvJE=; b=pvlhN5DlNczngEagzFxw0PDrdCNI712osUnJHGoViD9ITxLTlrORvxQ1sjJZkeCW+p rmyCd9De81dS2VeBL4hH16DVoBCcIuMnFMwlllXAmPZhGwT0x529er27im9BdzY4lwSZ DrjtDXpUaFdFEmgVwEC7pRIb/uSiAzS5JKCI10eY9HPSCAh9IBE2QRBgDVn+yiMzWFGQ 2p/8UpjT9roHQ+2frO6nk36Xtooz10DLasF/OKuyfKhx7OUfBWWw6FbJeNSnxT5K9k5H KpOIEuugbOsYXbQlTbZSWd/jzQFwwhH8k3ppZ4oOWy0TRW8y80MbszSTYDJA1xbFrgYQ NRAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LyvVGjOf; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a63b903000000b00462cfc13a30si816777pge.412.2022.11.03.04.35.24; Thu, 03 Nov 2022 04:35:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LyvVGjOf; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbiKCLef (ORCPT + 99 others); Thu, 3 Nov 2022 07:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbiKCLe0 (ORCPT ); Thu, 3 Nov 2022 07:34:26 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2053.outbound.protection.outlook.com [40.107.96.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10C7712606; Thu, 3 Nov 2022 04:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mk8FKi+zpJS9eVRKdwiXWtEIDT+wiU4q0/vP8zTh98sFRNyGj2zyx+CcGxLqhUIkTsAtTAsqp1hCEx52Qbj/OXQLb5uKAN+SYUjv6jn/ETHhkjttYrwLfZLleI5Piz+gsVj5Vi1pwPEqNl3/EO91EKuRoiKbwVAOvOqLWT2/9JfZZnNP6czkpjaTlGWVGizxmKWzPaoTVY7T8KwHRYtZxHUJCXatSUfk7lTaWHY1g2bhIguThCNmzemc/j8eMZp0cudCuqLbbPwgSjAjFAS2rMRaAHgE/j3ImOoY/4OyUqZ7vcMlPUTQTXhV9XzRz9MEVnE9681um2bsmYYQaBC9lw== 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=80sUDZgLqWj9NTbV3MXrxl0hZfKhyGxhpo19Q7lGvJE=; b=TwR7gZwY/1dA12woejwOsokg4yR6f3gDyCpvX2xFRGNLgjIEiSuy3VcFWdTaBBiVdUBmpZKCp/Knl8W7DWO7+VHjWg1ZmAw/XPshDVmeKK5nMLjfdjuF8mCxlU7/JXAhVpe9WwSOujDk/TuiLQigprIbhr1cnb9kgofO60Cj8wnstgSBsNOmZYaFdohDrQaUodUFWQD9l89S8feehTNw0awrf3RvCLVSkQ/QCP5hH+Se+izFtJOIrBCmdrJLi+Vw3+SSMDPueaYCUxtL0H0+Z+jwvsbbVkJZdYHuq49bNRAna67xVKAm33ekmFq/J5SPAm8L1mn6sO+TV0ifGN3v9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net 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=80sUDZgLqWj9NTbV3MXrxl0hZfKhyGxhpo19Q7lGvJE=; b=LyvVGjOfsT0ilfYAK3wGvr/nHbeh66N4QsfV++UxvLdj/qsFSmhvb+oaIaHV2hMBamdO66Sqm5uf+FZyBOOkcAk/iLoP10SmEZeDVPeTVVgVwcq4sx4oQv8emudu3hvPJROVV3krTrBSZqlDD0aG5yBoXfHLdgjuoBZiUOO3znE= Received: from MW4PR03CA0216.namprd03.prod.outlook.com (2603:10b6:303:b9::11) by CY5PR12MB6454.namprd12.prod.outlook.com (2603:10b6:930:36::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Thu, 3 Nov 2022 11:34:24 +0000 Received: from CO1NAM11FT003.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::81) by MW4PR03CA0216.outlook.office365.com (2603:10b6:303:b9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.21 via Frontend Transport; Thu, 3 Nov 2022 11:34:24 +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 CO1NAM11FT003.mail.protection.outlook.com (10.13.175.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Thu, 3 Nov 2022 11:34:23 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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.31; Thu, 3 Nov 2022 06:34:18 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 06:33:58 -0500 Received: from xhdpranavis40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Thu, 3 Nov 2022 06:33:55 -0500 From: Pranavi Somisetty To: , , , CC: , , , , , , Subject: [RFC PATCH net-next 2/2] include: uapi: Add Frame preemption parameters Date: Thu, 3 Nov 2022 05:33:48 -0600 Message-ID: <20221103113348.17378-3-pranavi.somisetty@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221103113348.17378-1-pranavi.somisetty@amd.com> References: <20221103113348.17378-1-pranavi.somisetty@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT003:EE_|CY5PR12MB6454:EE_ X-MS-Office365-Filtering-Correlation-Id: f52c76f4-2fbd-45ee-dc2a-08dabd8f5b6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H7EY6xlcnJxW5/65UXoFk4348FnQDpAb7kvGFlW2krM9hXoaDkSzyHzgyAHHUuQWfN81dT3tLDN2qgdP5rLHHDUssrCiPB+TKkStF0l3rYf0cDrS5/5BMJ3LZB1+dV+28mXe64ymyX6BZAb0wRylsfiK6+wA0NmfUl/wluyioxgEhvd0+t6+2qs15Nox/hsgW23cgjk5r1M9OJyG5mMWoXz4e1CqIltN0aLAxbPmMnlWsHD94KddMJgrydPamfMOwWn1G10z7PuJKsqkN7V3HZZO93u+cbx30sZVhxfI83S5RiQxxPJSx21+l60AWeDyo9mT6ZSMaJ7lmvtJr+/6lDtxFmOPEaZ4os1mugVHx6Eq1+VY//3bL19+pHyIb/59ds2lgS8ZFgTHT8arvnDLDJBgjl5Al4v5DstHs+HukpNsEZnHusntrsE2y7p4Xy44AIcYeZdV6PvmIybsvG0NCQS72XOrPExY1gFrFblx21pzUNP1a64ukYYL23VhgRMXb+uzIwD0qi0eQNoZqyuTDvSBJ3AnglhOP8U1yeoXyWBwny2DM/nKZFET9KoQPjtLPxRAlT6/45gRwN9ARBg27yImJy1HmJqDuNRh88DqQ/fK+pueyuWQFUmBRN4Nj2bMtV8MUAuW37RyFOm6DgwT5e1XDFxiLOWzSwS6DEvPR+rUUeZol2WLvvIVoTunQu5s3yJQrlO2pkeQOXY6+gjB95dfwzUhKx6ALahh7WjEhVsbKslJKJSH6AT6tWrZs0TkIT30WAQjPdc/bXG38n7gHv+mswzmqpcv/aMrUpB04TI4vy5LuQtVRXnGNOd6VxeZ 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:(13230022)(4636009)(396003)(346002)(136003)(39860400002)(376002)(451199015)(46966006)(40470700004)(36840700001)(47076005)(316002)(54906003)(426003)(186003)(26005)(83380400001)(81166007)(36860700001)(4326008)(8676002)(6666004)(110136005)(336012)(478600001)(70586007)(5660300002)(70206006)(41300700001)(44832011)(2906002)(1076003)(82740400003)(356005)(40480700001)(8936002)(40460700003)(86362001)(2616005)(82310400005)(36756003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2022 11:34:23.6643 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f52c76f4-2fbd-45ee-dc2a-08dabd8f5b6a 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: CO1NAM11FT003.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6454 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748474620609136528?= X-GMAIL-MSGID: =?utf-8?q?1748474620609136528?= Adds a header file for Frame preemption parameters. Signed-off-by: Pranavi Somisetty --- include/uapi/linux/preemption_8023br.h | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/uapi/linux/preemption_8023br.h diff --git a/include/uapi/linux/preemption_8023br.h b/include/uapi/linux/preemption_8023br.h new file mode 100644 index 000000000000..762fe4dd1906 --- /dev/null +++ b/include/uapi/linux/preemption_8023br.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +#ifndef PREEMPTION_H +#define PREEMPTION_H +/* + * IEEE 802.3br - Frame Preemption header + */ + +/** + * struct preempt_ctrl_sts: Preemption configuration and status. + * @version: version for backward compatibility + * @preemp_sup: Preemption capable + * @preemp_enabled: Preemption enabled + * @tx_preemp_sts: TX Preemption Status + * @mac_tx_verify_sts: MAC Merge TX Verify Status + * @verify_timer_value: Verify Timer Value + * @additional_frag_size: Additional Fragment Size + * @disable_preemp_verify: Disable Preemption Verification + */ +struct preempt_ctrl_sts { + unsigned int version; + unsigned int preemp_sup; + unsigned int preemp_en; + unsigned int tx_preemp_sts; + unsigned int mac_tx_verify_sts; + unsigned int verify_timer_value; + unsigned int additional_frag_size; + unsigned int disable_preemp_verify; +}; +#endif +