From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F349A04E0; Thu, 28 Nov 2019 15:16:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C3B72B8E; Thu, 28 Nov 2019 15:16:16 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 224932B8E for ; Thu, 28 Nov 2019 15:16:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574950574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e+pN/pwQa36lj93fyZHV0Vc7gIBpr0XAms+DtDxyL4A=; b=aeDUybVE3xXDPn7Mamv4mulCYN41WVJuF+wL2NlPjCWsnKRhMtAIQ0BcSIL65jMMBpmTiP 3OcaR10TcY6oK4JIeE6WJtW2xyEaS2CDdlQ+wZUNicRcGvHz5NEUOvWXKVtrwG6jkeOjqI BxOJKsDA+/KN9Se0AgpXfTPb14KPpD8= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-257-13ML9-ZOPTyegAZTZc70HA-1; Thu, 28 Nov 2019 09:16:13 -0500 Received: by mail-ua1-f69.google.com with SMTP id 108so1321373uad.11 for ; Thu, 28 Nov 2019 06:16:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hWBOjw8PBsMlA4IN5znb+sSJazBC/K7I+fWQx5bCkwo=; b=V5dXI/RDyRaAX/XioQl/8/JtJPpe0EKPGzqEBjEK93cM9Zg64287D2X0A6lKhUziw7 AvlGXyEwZQIQIsikjrMgLqj/mqpUVqcgETcmbg+wDO32NflmTj2mRDcaM0lF+IYjzKOO b9rid+SYjnYdqiEcFpaqV/HqygF/rS4F3Vwxur8nrFfCsPyClZz2XeQGRig0zu+kPzxO 5FQW0kgKQ7kyCFQGAF5IVSjDm5nHRWa8UP2c9X7KDTaAocQU/bx11QxxnXVhn93kDU4H 7fA9NECscI+8p588okKwJ9mnCR6DrI9GrTANP233/DbnwMQbr0h3cxy/sVshoL9diSsV l+nw== X-Gm-Message-State: APjAAAUhgyI6LciMbMDgKnfZjGw/BMfqhl8AEW225tv80V9XsEyuD3u9 Y0/HIB+OXsdS+mKLy7LSgXI+3OOTvBUZXUes0aRzuKbn+N2kQHG140v/tGDGeJoq6SYJct0KGA4 lPMHt8cD0ezlFkO6bkK4= X-Received: by 2002:a67:ee49:: with SMTP id g9mr29740948vsp.105.1574950572495; Thu, 28 Nov 2019 06:16:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxAKKG8cd7/rJwtsk0GssQu2gitVGUk7HuXZ9wjmZlGlEEjqziNi7GY+/L11LFxoGLmW4h1CIRCTCHdEZFg1is= X-Received: by 2002:a67:ee49:: with SMTP id g9mr29740926vsp.105.1574950572134; Thu, 28 Nov 2019 06:16:12 -0800 (PST) MIME-Version: 1.0 References: <20191128121526.18810-1-ferruh.yigit@intel.com> In-Reply-To: From: David Marchand Date: Thu, 28 Nov 2019 15:16:00 +0100 Message-ID: To: Ferruh Yigit Cc: John McNamara , Marko Kovacevic , dev , Andrew Rybchenko X-MC-Unique: 13ML9-ZOPTyegAZTZc70HA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] kni: fix build with 4.9.x 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Nov 28, 2019 at 2:43 PM Andrew Rybchenko wrote: > On 11/28/19 3:15 PM, Ferruh Yigit wrote: > > The 'get_user_pages_remote()' API is updated in kernel 4.10.0 [1], > > but the check added as > 4.9.0, > > this logic is broken for kernels 4.9.x, because they justify > >> 4.9.0 check but have the old API. > > Fixing the check as >=3D 4.10.0 > > > > [1] > > commit 5b56d49fc31d ("mm: add locked parameter to get_user_pages_remote= ()") > > > > Fixes: d965af9e8ae1 ("kni: increase kernel version requirement for VA") > > > > Reported-by: Andrew Rybchenko > > Suggested-by: David Marchand > > Signed-off-by: Ferruh Yigit > Tested-by: Andrew Rybchenko Reviewed-by: David Marchand Applied, thanks. --=20 David Marchand