From patchwork Mon Aug 17 12:37:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 1346193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BVYVC3n2rz9sTh; Mon, 17 Aug 2020 22:37:54 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1k7eOc-0006V5-NQ; Mon, 17 Aug 2020 12:37:50 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k7eOb-0006U6-Ax for kernel-team@lists.ubuntu.com; Mon, 17 Aug 2020 12:37:49 +0000 Received: from mail-qt1-f197.google.com ([209.85.160.197]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k7eOb-0000fo-0K for kernel-team@lists.ubuntu.com; Mon, 17 Aug 2020 12:37:49 +0000 Received: by mail-qt1-f197.google.com with SMTP id e14so11960111qtm.5 for ; Mon, 17 Aug 2020 05:37:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3ZZZ2FzJ6/5OUWTBeIC/TDp3UPiT4dpmydJQmJmy9lE=; b=EXcczSCsD4bJLGK1p+5IKfc21zrqQnfL/qUuwtI9rBACkf/Xfx+U4DtKsfeBgzMP+y e4KrxFXbMA3f1MSdxDiAIoAdSXtVi8EBJ+EbthjNwrfHVrYhQZOj/gmRvIgVNy/idxAe R7AOGwq/FHIfjnsuKyYRy6csojh5eI2LeA9WkQfPO7oIS53xl8G/SWslfOb93kTdBwmC lV8rT82hGlwTpCoSq0aOdaId7cLz1+f/6Ksg735BsEhY+9og9UUckkLpN12ewt4ldv4L C0GA58UFyhutIgsbaOXdrr52XdHKVwmth5OvLMWVknINm5FZ3VWkIFJQWg4mmV7VA+Yj Ovcw== X-Gm-Message-State: AOAM531/KF1Zam+tKlqCFuEC3DJpM5ChYaoUU64ljBhXHl+hrkB8kBmL 3Tr4J13QtUzWdnwwrsbZSwtsUBTNxdcXVHMvxnnyKlC2i8R4CGkTnR6Dn8gd9r0961c6OnKtAKn 2TBsKjID5lq2xviMezhJJTzdPWGFBkL6jWgGJrvoMug== X-Received: by 2002:a0c:aedf:: with SMTP id n31mr13897511qvd.16.1597667867872; Mon, 17 Aug 2020 05:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxopjiknd++laVzNLFxD2yozc5T7SpTuBfbTb/dTa0cpcuNrPwMy51ke4PC2gp/Wuzob8cTQw== X-Received: by 2002:a0c:aedf:: with SMTP id n31mr13897495qvd.16.1597667867681; Mon, 17 Aug 2020 05:37:47 -0700 (PDT) Received: from localhost.localdomain (072-189-064-225.res.spectrum.com. [72.189.64.225]) by smtp.gmail.com with ESMTPSA id m15sm20177234qta.6.2020.08.17.05.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 05:37:47 -0700 (PDT) From: William Breathitt Gray To: kernel-team@lists.ubuntu.com Subject: [BIONIC/linux-azure-4.15][PATCH 1/3] net/mlx5: Expose link speed directly Date: Mon, 17 Aug 2020 08:37:38 -0400 Message-Id: <20200817123740.6938-5-william.gray@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200817123740.6938-1-william.gray@canonical.com> References: <20200817123740.6938-1-william.gray@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Mark Bloch Expose port rate as part of the port speed register fields. Signed-off-by: Mark Bloch Signed-off-by: Saeed Mahameed BugLink: https://bugs.launchpad.net/bugs/1876770 (backported from commit dc392fc56f39a00a46d6db2d150571ccafe99734) [ vilhelmgray: context adjustment ] Signed-off-by: William Breathitt Gray --- include/linux/mlx5/mlx5_ifc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index b4f38bb534d2..d54a04326e37 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -7409,7 +7409,8 @@ struct mlx5_ifc_ptys_reg_bits { u8 proto_mask[0x3]; u8 an_status[0x4]; - u8 reserved_at_24[0x3c]; + u8 reserved_at_24[0x2c]; + u8 data_rate_oper[0x10]; u8 eth_proto_capability[0x20];