From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55827A0350 for ; Mon, 28 Feb 2022 16:30:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FF39411A4; Mon, 28 Feb 2022 16:30:10 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150104.outbound.protection.outlook.com [40.107.15.104]) by mails.dpdk.org (Postfix) with ESMTP id 1B0C24117A; Mon, 28 Feb 2022 16:30:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g3mF7z0KSfdMyYTw9UCTcYGaElsLBo+IXZAM4WWNutbQ/HyoKEr07krkF+oWH6MTpphM3wc7lR7ynRsBUm9bu+itJEC0hUzti4XiE3w4vTiO7P6VmEJU5zpkzimUo2lZInGRt4eZ8w9fiagy7EOAojb4ItFPSw3oDtfruDMfTYh06GlJKRcqfp31bF0dxriE28puR4uRdNrhcKBdNZWURJDKIqQXyrRehc6kvfCCdU97jTAk5EjNqq70u+estcaoDQ6CWtBDDURSZ36GaLYYPFaK3pqewcrwVXrNT+CnPn3BIIOznxvaHbi+6BiG5G/2uDJhuowKlzYxprhuTDFIlQ== 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=Zige4E52vW9HOI4AZ210UUffyQkW/GUDvd0qsrYPSWc=; b=K5dLNET1SxTcgZTpxFlIn1bhS8AhMrIRerR9KisuI6gKH7Ctghp1xtgDGAU+GVg/uPyiQSK+Z//2gYu4SwyeJIfIDNA6wZz2+7OupjP7huEy/Gdk4Y28gMYNakhfI1mTkbCw8EE59WsqA+X8qZzjzqFu/r9IViIMVCGwwWh7kIHR6HjfKt0PjlLfJvTRMRJxDAFwEYG1XYSClktNLrwbJhHAUVnx7xWg4rHhNsixDx+c8ScP8dECDB0fd6iHfhD01woMeVLgGUU5EDCLvhidW+zQlkbAlN/s61zGYnNVsFionWphjHhV90tqW+aeg3ohaPm2aRDRSKSGedR0+/otrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silicom-usa.com; dmarc=pass action=none header.from=silicom-usa.com; dkim=pass header.d=silicom-usa.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=SILICOMLTD.onmicrosoft.com; s=selector2-SILICOMLTD-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zige4E52vW9HOI4AZ210UUffyQkW/GUDvd0qsrYPSWc=; b=OkBDz1bWf3Y5d3dWPkAu3GtK1MGYcDo1Iv08R5YcpcoNZ/yRpTV3b5Es49qiOYKt52nQEiKfbYycXDCLV4gsZNZ+IN35GqpQ6V8V3NgOcDJv8v71/GWDGVgljv3ieeQJzDj4D2z00Whn50y3lVKVzqKsyIOU5bw5SNXKWW8ZBck= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silicom-usa.com; Received: from VI1PR0402MB3517.eurprd04.prod.outlook.com (2603:10a6:803:b::16) by VI1PR04MB5167.eurprd04.prod.outlook.com (2603:10a6:803:5b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.25; Mon, 28 Feb 2022 15:30:05 +0000 Received: from VI1PR0402MB3517.eurprd04.prod.outlook.com ([fe80::ed1d:f50d:740:a182]) by VI1PR0402MB3517.eurprd04.prod.outlook.com ([fe80::ed1d:f50d:740:a182%4]) with mapi id 15.20.5017.026; Mon, 28 Feb 2022 15:30:05 +0000 From: Jeff Daly To: dev@dpdk.org Cc: stable@dpdk.org, Haiyue Wang , Xiaolong Ye , Xiao Zhang , Wei Zhao , Lunyuan Cui Subject: [PATCH v4 2/3] net/ixgbe: Limit SDP3 check of TX_DISABLE to appropriate devices Date: Mon, 28 Feb 2022 10:29:36 -0500 Message-Id: <20220228152937.21247-3-jeffd@silicom-usa.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228152937.21247-1-jeffd@silicom-usa.com> References: <20211206221922.644187-1-stephend@silicom-usa.com> <20220228152937.21247-1-jeffd@silicom-usa.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BN9PR03CA0248.namprd03.prod.outlook.com (2603:10b6:408:ff::13) To VI1PR0402MB3517.eurprd04.prod.outlook.com (2603:10a6:803:b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfd7e9a0-b025-4ff3-e74b-08d9facf3216 X-MS-TrafficTypeDiagnostic: VI1PR04MB5167:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BYKTpHwBpHyh2C7/Fw2+oeO5giHWP4N73k4mEW0I/nsxhuwiffitysTvdGzqWUqVD5a13CJwGTMZaaE6gf7LWDj6iAPicYf78rQ6HmfqyygCKXIgeehaBeEAMZ3PqRkLa4CyZvetrbcEDJlJJhU35c1CqonR25r1GjVJ4FIeCvJZznVkB7LXy+j0xYhqj02KsNXG/ays2XfJDL4/vllqEBw740dLXoVkPWn9ng/cDQsZdp/2crJRZzRFNmlTPuoBA0RE76X4+KBhQvTPdGG02GxzcTdNYa0J2/wKZpDi47Prq2V1f1HKPkohZUTMaj6mvJmBZcy1OB5ihay0bau7CKjlXNbeqKnTlLArqV//A96IxA/ueyOsLSG5SqbZBRCmJF4bDXIlNLNfb/3UJFD1N50LphdvjHggA6uZ7RjQeaS46RRca7NpHisBVEDFHw8diXLptM1xOPH+65HogQuMxJu1wnzadoVyDtHc2AQFM0GKn2N3kmrsV/zdcfwV2hdn4HI5XFFNX7/VV1QknIXDUjJXt1V7RwYY1Yi1+uZdcDo5qqKmo2wDfsQVg7wclcsQaHecc1oUzog3VvQnc8Sf0NqfDTOonZglhF9jXYh9XzN/ny9ACe75QNFd3wKkMPh49d9KxgHPT9I/7dD1bXI9WGNO6uRjAiu8ojWNJuqIv3Hs3TRPWV28j46/sRaS7mepLsVLAOpaaLpsvnxvk/nuag== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3517.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(6512007)(66556008)(8676002)(66476007)(6506007)(66946007)(52116002)(4326008)(86362001)(26005)(186003)(2906002)(83380400001)(38100700002)(8936002)(1076003)(38350700002)(2616005)(5660300002)(54906003)(6916009)(6666004)(36756003)(508600001)(6486002)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Cc9Bvqdn7Qa0MBDFogkXl3ZXEFiWJSmrjhjOH3cOMcnjM3gJFz9Om3Refyua?= =?us-ascii?Q?vPIuyc4+Qbm0SJ4b9PmaxhAcJBMiXqoLh9zkmHdTIEtAYLMPOWivZfz4T/yb?= =?us-ascii?Q?8J3nqSPwzgd8umT6iosNLgtZ1kB7GJ+twBCYpyUnhSFz/a/koaE82ycw46zE?= =?us-ascii?Q?4AmtUdRF33+0/3zo+9v8krK11yJ97V7dOKM//f+xqRjD/XZWweZ0N3GNCNup?= =?us-ascii?Q?HFSLl1zoNNfskffxIiAGvZPnJGwhM/GcJWGBbuDLfFhEslD5zKHdrltPmZwu?= =?us-ascii?Q?yZP8KwZfPnk4r+/BBAXiZ3u1KFBzq5owY3crx4+1QSWOUOLIkIi1UMw5l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rNGDGWt/tq02zbapwXZTOCQbxypTZ4gpX+ox/9RR8JwucE?= =?us-ascii?Q?/8h3ELraveeuuXieE2rYZutX0FM+6pPd4ho8uFXsSqQa17k7faYiex2Hx+Ne?= =?us-ascii?Q?87s4UoXkAj8eqnQCHKy65w3vPG+2IjDIRbRDI6+bqZmmEqDkrDzerQzA3+He?= =?us-ascii?Q?rcKEdzuBrusLFoG6W/oBWrLiOS6W8GwXHNyL+N/ZlLP4HIWjbVdYTqyhY7p2?= =?us-ascii?Q?8yXRIgptyuRt9bWoUflXff1yaNZQzhBlgBHqCaEBxHvwFvYaUWmqXyCU2EB7?= =?us-ascii?Q?mR/empHa+h/zhNPJcQbVIG6+f14jBh6Z7YC0tocSCMvBDfuEWFZm/GUBAKg5?= =?us-ascii?Q?nsi8m41jjcwUaOrxdyHIqvqhdFwA02KuuWSQneuAZJIz5fsFwoscdRQV9hTp?= =?us-ascii?Q?3EfLrYcuxokpcEQ8X3JchEc=3D?= X-OriginatorOrg: silicom-usa.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfd7e9a0-b025-4ff3-e74b-08d9facf3216 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3517.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 15:30:05.7984 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c9e326d8-ce47-4930-8612-cc99d3c87ad1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: USLCBW/FEvPBgwR0xnpC4X6UssThPRa9AeL7WNT7sbZbAyIOiwJWRFmEAX3jDLSYrKO9R95nNz8ZWqQj+wNF6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5167 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 1ca05831b9b added a check that SDP3 (used as a TX_DISABLE output to the SFP cage on these cards) is not asserted to avoid incorrectly reporting link up when the SFP's laser is turned off. ff8162cb957 limited this workaround to fiber ports This patch: * Adds additional check for 82599 type, not all fiber ixgbe devs use SDP3 as TX_DISABLE Fixes: 1ca05831b9b ("net/ixgbe: fix link status") Fixes: ff8162cb957 ("net/ixgbe: fix link status") Cc: stable@dpdk.org Signed-off-by: Jeff Daly --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 68b28b1ce6..e8f07cb405 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4260,7 +4260,8 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, return rte_eth_linkstatus_set(dev, &link); } - if (ixgbe_get_media_type(hw) == ixgbe_media_type_fiber) { + if (hw->mac.type == ixgbe_mac_82599EB && + ixgbe_get_media_type(hw) == ixgbe_media_type_fiber) { esdp_reg = IXGBE_READ_REG(hw, IXGBE_ESDP); if ((esdp_reg & IXGBE_ESDP_SDP3)) link_up = 0; -- 2.25.1