From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 18E601B1E4 for ; Wed, 3 Jan 2018 16:21:14 +0100 (CET) Received: by mail-pg0-f67.google.com with SMTP id b70so800151pga.2 for ; Wed, 03 Jan 2018 07:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8Jm4HxtaAT/Bbe6qv26qnu4iqx9wSQHqVa0wXz/oCFs=; b=HwtTYd4PUSTK3gNBlB6hADpFa+R/0U9hJyhNi7RTBA7rSvIRvs45nAOwkKFq5axuZL K/QFE1rNSomIPbh1mwgatbQXHRP62848/n6OqXL8bO5oZ0l+crBzWJwbpx6z6oU4sqvf m7J+KLd2DwI0hfEeTTZ9b4bhZmRaDEFWyjpyt924VewnH0uSoyBsAE7j6NdAHRxK+xB1 f4+buJppO+bgUf/DVDyEkRHgCExY/x35pfGO8+ZHhcAqxJbNpz/7/x8M/sku49oFOuZZ GvY9i3iAuox+5s4gj2etq+weIO1qeD1FxbU/FYdRs1zKrhgG0bzQW76qrWsVl1Dx3+1D qfVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8Jm4HxtaAT/Bbe6qv26qnu4iqx9wSQHqVa0wXz/oCFs=; b=jLKgqUpzGOTtfhcXQ0A0t64ZLBGQ9CDFY8EYM6JVv2j+yu/kautuDBZXZXdsTWMObc XqhtsWHs5iXP+mj3ywFMP7lwrfgAER0EYohe86kDZ6aroNSZASPRtX7eI3WNi8mIXPKA 2pNOiXosmLLzc1AQq6X/UrhQv359t4TAIwJwFqOrhifrfOE8m/WDuzltVjTJ5HdQCGIc XEQdA50oTqLvXhJpq9DB0qdG9+wVXDbu6gm03uXFCEAspPj2cG52CwiAjYaLOoAB7TGo XbDcU2ZJCjOiHCK8bQ8AGDryJeBsYNtJQCC3t6S2+BASUg8GmFbQ4r7eyWgaBDTsSpMo eMUw== X-Gm-Message-State: AKGB3mL8iQqfY5vd48eoqO+xr0HjAxlGPt+eh4EXkQaDLgIggPoxpg3B F01uodzr0D53dahyDcdqV7WsCg== X-Google-Smtp-Source: ACJfBovcoPY+iXPM9nigadekMB7O+X6CyvQINRfhFs1K0w5DXMtKqw6b5Tl8R//ta+BowUsjtIsaqw== X-Received: by 10.101.91.195 with SMTP id o3mr1528667pgr.215.1514992873185; Wed, 03 Jan 2018 07:21:13 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id 82sm3871907pfm.136.2018.01.03.07.21.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2018 07:21:13 -0800 (PST) Date: Wed, 3 Jan 2018 07:21:11 -0800 From: Stephen Hemminger To: Nelio Laranjeiro Cc: adrien.mazarguil@6wind.com, yskoh@mellanox.com, dev@dpdk.org, Shahaf Shuler Message-ID: <20180103072111.14feebb4@xeon-e3> In-Reply-To: <20180103102553.e2pa5qxtxlqwchj2@laranjeiro-vm.dev.6wind.com> References: <20180102205310.3586-1-stephen@networkplumber.org> <20180103102553.e2pa5qxtxlqwchj2@laranjeiro-vm.dev.6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 0/2] mlx5: remove dependency on kernel version 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: Wed, 03 Jan 2018 15:21:14 -0000 On Wed, 3 Jan 2018 11:25:53 +0100 Nelio Laranjeiro wrote: > On Tue, Jan 02, 2018 at 12:53:08PM -0800, Stephen Hemminger wrote: > > Trying to eliminate all runtime calls to look at kernel version > > to determine API because they are source of portablity problems > > in distributions. > > > > Stephen Hemminger (2): > > mlx5: don't pass unused argument to sub-functions > > mlx5: don't depend on kernel version > > > > drivers/net/mlx5/mlx5_ethdev.c | 118 +++++++++++++++++------------------------ > > 1 file changed, 48 insertions(+), 70 deletions(-) > > > > -- > > 2.15.1 > > Hi Stephen, > > Thinking about one point, this PMD is able to work on current > distribution releases using large version of kernels. This code was > handling two points: > > 1. Compiling against a kernel before v4.5 is possible. As this > situation is supported by MLNX_OFED it should remain. > > 2. Between v4.5 up to v4.9 the new link status API is buggee causing a > wrong status. This was the main reason why the kernel version was > verified. The problem is that enterprise distributions backport without changing kernel version.