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 2B0F3A0093 for ; Thu, 10 Mar 2022 13:19:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22F3C4113E; Thu, 10 Mar 2022 13:19:21 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 4A68F4113E for ; Thu, 10 Mar 2022 13:19:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646914758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGTq9AnMOsMVt32ZEdxUvP/R2x2vu1kbGTpIy0cNGMg=; b=WZedoHBGjkwQq/EsLAxxHMjkGKepPkbZ/7V0oPRroAs1vfK/xjEYRC3CLawPeTu+uQAVdl cbSYxQt/lQFDFEJ4xRRO3nKPsSwMyk8KKQKLH4F7PV+m2ju06OakQKRiNxdcc0JH2VGuUI YLHSUPdGjbr9WA0gi9l41sv7w9/6cmY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-561-wHCEqycCPLGskGpcMnDrxw-1; Thu, 10 Mar 2022 07:19:16 -0500 X-MC-Unique: wHCEqycCPLGskGpcMnDrxw-1 Received: by mail-wm1-f69.google.com with SMTP id c126-20020a1c3584000000b00380dee8a62cso2036633wma.8 for ; Thu, 10 Mar 2022 04:19:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=HGTq9AnMOsMVt32ZEdxUvP/R2x2vu1kbGTpIy0cNGMg=; b=LXF48uorQcXUcho+FETn80A0o4DKA0QirBpwOVzckrRsZw4EDH4HaMMkup+CeAcsa9 bJNp+MuImT5FAL2Sk6ErUKmH38A8d4010OP6XRu9Irh8WBJtwSah8A5GRIkaIXLYmeGh aWK77Qwd/9OOgkHi8DMHNlqWVm8l4bpnadjcmn/vkf+rtgalG4X0LMZ8dqRT83NOTfCe Q7dvTddz5sqGvrPRh+E0nqZJguxysKuWZ0SRfNIFhnYTTWedfCHykyJPmhDNRAEP9+ZB 2mRRbjhFVBOCH923+k/CDe1QoWjAZXU4kyQGs7tEyADEyMnGAM/j6a6vrADzZsUK3q+f GxBw== X-Gm-Message-State: AOAM533Zpw/mtLJ0q6ta9LnX6LBREKmEAtHz5BF++YuAZeSUq5JaKqXY e6C6GUAOauAd73PC39JJyXkwn4sKz8LMIrkONjCrP0qefAgsYGuFyz8Xstc+P2msfIhSVuD0EKF B0XQZ5pY= X-Received: by 2002:a1c:cc11:0:b0:389:e8aa:ad4b with SMTP id h17-20020a1ccc11000000b00389e8aaad4bmr508828wmb.79.1646914754480; Thu, 10 Mar 2022 04:19:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxZhKtRA8ubGBrxe0eHIupoY8JL8kgWR4Am9LH21ckH/N90CQ+A5Pfuj8qwWkVWMnqLDE/0A== X-Received: by 2002:a1c:cc11:0:b0:389:e8aa:ad4b with SMTP id h17-20020a1ccc11000000b00389e8aaad4bmr508817wmb.79.1646914754329; Thu, 10 Mar 2022 04:19:14 -0800 (PST) Received: from [192.168.0.36] ([78.18.17.201]) by smtp.gmail.com with ESMTPSA id v188-20020a1cacc5000000b00384b71a50d5sm4419552wme.24.2022.03.10.04.19.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Mar 2022 04:19:13 -0800 (PST) Message-ID: Date: Thu, 10 Mar 2022 12:19:12 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 21.11 0/3] net/mlx5: fix link state detection To: Dmitry Kozlyuk , stable@dpdk.org References: <20220308151044.1012413-1-dkozlyuk@nvidia.com> From: Kevin Traynor In-Reply-To: <20220308151044.1012413-1-dkozlyuk@nvidia.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 08/03/2022 15:10, Dmitry Kozlyuk wrote: > [ backport of https://inbox.dpdk.org/dev/20220301121514.41497-1-dkozlyuk@nvidia.com ] > > This patchset fixes two related issues: > * In rare occasions with any HW link state change to UP was missed. > * If a port was DOWN before startup, its netdev would come UP, > but appear DOWN in DPDK (especially probable with ConnectX-4). > > Dmitry Kozlyuk (3): > common/mlx5: add Netlink event helpers > net/mlx5: fix link status change detection > net/mlx5: fix initial link status detection > > drivers/common/mlx5/linux/mlx5_common_os.c | 2 +- > drivers/common/mlx5/linux/mlx5_nl.c | 102 ++++++++++++++++++++- > drivers/common/mlx5/linux/mlx5_nl.h | 8 +- > drivers/common/mlx5/version.map | 2 + > drivers/net/mlx5/linux/mlx5_ethdev_os.c | 63 ++++++++++--- > drivers/net/mlx5/linux/mlx5_os.c | 74 +++++++++++++-- > drivers/net/mlx5/linux/mlx5_vlan_os.c | 2 +- > drivers/net/mlx5/mlx5.c | 1 + > drivers/net/mlx5/mlx5.h | 3 + > drivers/net/mlx5/mlx5_trigger.c | 12 ++- > 10 files changed, 241 insertions(+), 28 deletions(-) > Thanks. Applied to queue, will push to dpdk.org as part of batch next week.