From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id C8D1F5593 for ; Mon, 12 Mar 2018 14:44:38 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id v65so15729775wrc.11 for ; Mon, 12 Mar 2018 06:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=adZ+dJNRKHJs/Tt9Pcf6j9J/ZpwfxiFODoz/8IrIH7k=; b=YgVCJhxK4iYK1hLEEn+R3MZCVCv5v5722TvEaF3dDVVJ0WRC+a4INywinBV42SHcxm s0fSUDTOztwyBPv5yxLJhsEQ2S9viXIQbZgdAdo0wjHaC4QHaPaAYNRuXTQ8soG+lQYv OEJc4sl07TaKtAdrFlf2RGTuJzLFziSlLsL+CWmi6v2vN4FEC5LlerpFHfqzsWOPfqmZ AzY6rWOy37F57JP+o96PehfiG734fxhqTPWmwqW00UcrawC4XPTQC2R3rlXOg7P4xErL 0ob5mybSLlXgJQCjHNvCE+xcSsjkWTw6woh1JxIQU0LSJa7KpBCV7Xu2ts/HjDlGpbCE 54OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=adZ+dJNRKHJs/Tt9Pcf6j9J/ZpwfxiFODoz/8IrIH7k=; b=dA3XnWkGuWaWSmvJi/gfNZwItyz8Nm7pKa2nbvizzFoL6FI2IUJxeleSfhlSyAmvXF otYVvhv3Igx5IbXXfsSm10LL/5+IbwK/Ind9/xrOpFEawvqBEOajyCDONxFmM9E8tTkm C2yNLJjopowjlwwaJklrF+YkEX9Jja5PSfuL9omT4wHF0T9WKCzzm8pk25rVSzpZbi+E PpwcO35Z1vD+IyAuWqXlGOLyrwDTtEQ7r0UyXSrs7o5knNwmj+b/UxAhgGSmVHTONPCM oN8Jh8V9H6rKgQSOVV/MY+x02Zh+iDE3DL2wQ7DOLUpLWAUnpTu7fBCuteEKOLrgonl1 Ab9Q== X-Gm-Message-State: AElRT7GrTrxlrYtLAoT0Xyu5xl1v7BC/yZtPXMsOFJdaBhyyl7mEyefb 1PWXIoKbD+KBayoTT/6h8VDre+wJRg== X-Google-Smtp-Source: AG47ELsgxQZfPrI7vKuwA63tZ+H17WeiYKZJApBHihUv9r1+ChkWqn2ht1rEkWK9eg0w6mEwsK7nDg== X-Received: by 10.223.149.68 with SMTP id 62mr6732442wrs.249.1520862278338; Mon, 12 Mar 2018 06:44:38 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id y1sm6569198wrh.80.2018.03.12.06.44.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 06:44:37 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil , Yongseok Koh Date: Mon, 12 Mar 2018 14:43:16 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: <21fb91002768a627d9c7f3d81e0c8a12fbf6811f.1518684427.git.nelio.laranjeiro@6wind.com> References: <21fb91002768a627d9c7f3d81e0c8a12fbf6811f.1518684427.git.nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH v2 0/3] net/mlx5: cleanup link status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 13:44:38 -0000 This series applies on top of [1] and cleans up the DPDK API implementation for the link status. [1] https://dpdk.org/dev/patchwork/patch/35653/ Changes in v2: - Removes kernel version verification, the bug it tried to detected was fixed several commit after in the PMD. Implementation in mlx5 kernel driver is only available since v4.9. - Removes the alarm handler as this can be worked around by not acknowledging the event until the link becomes stable. - Clean-up the API implementation by letting the application handle the interrupt and decide by itself to start/stop the device. Nelio Laranjeiro (3): net/mlx5: remove kernel version check net/mlx5: fix link status behavior net/mlx5: fix link status to use wait to complete drivers/net/mlx5/mlx5.c | 2 +- drivers/net/mlx5/mlx5.h | 1 - drivers/net/mlx5/mlx5_defs.h | 4 +- drivers/net/mlx5/mlx5_ethdev.c | 244 +++++++++------------------------------- drivers/net/mlx5/mlx5_trigger.c | 15 ++- 5 files changed, 69 insertions(+), 197 deletions(-) -- 2.11.0