From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by dpdk.org (Postfix) with ESMTP id 17696C3DC for ; Mon, 11 May 2015 11:07:32 +0200 (CEST) Received: by wizk4 with SMTP id k4so97012819wiz.1 for ; Mon, 11 May 2015 02:07:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=L7vABNg9eThBfCFhzkKFI6O+5UZanj7Mw/idtbVRtaU=; b=jr/eryUxaBxly8/O2O3GldNeV4Kuo7GGx0it6rJf/2gUliP8YdMTF/+Q4OgmnaF0wG 4eQWQrguXoD7s4wKDkxcVQjdZ8PTXSzhazae//6OvmGObIoaJOTzmH1YQsrN5ttpUFM/ 7h8VR21AC7rlbYK+3brTLTiXwp0UuzihccUn/GjPsUG+3oVq2RkzUY1yJ7iRe3DPhTuA wyLmNukkqONkZyB7kkU6L2B21j8261OzFm7NxkJ2LY18HonWSfVeIGzXS8i/6ooAixGR 2eoLQ0gIuaRWpL/sz2Sg6536I18IZ3PyKex1wO8X5agCwbGOSTzyPu/yR+g1pB7tHpQY 8wAg== X-Gm-Message-State: ALoCoQltkk4FBZDhKV3p6cLOEqOIUEj3yBPC98MP9qdObcHdymzT164oHZ7QnAK7tYl/4MkYkV+t X-Received: by 10.194.176.225 with SMTP id cl1mr18060001wjc.45.1431335251894; Mon, 11 May 2015 02:07:31 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id b5sm12244936wiw.8.2015.05.11.02.07.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 02:07:31 -0700 (PDT) From: Thomas Monjalon To: Pablo de Lara Date: Mon, 11 May 2015 11:06:50 +0200 Message-ID: <477112605.Zz0Hi882Wb@xps13> Organization: 6WIND User-Agent: KMail/4.14.7 (Linux/4.0.1-1-ARCH; KDE/4.14.7; x86_64; ; ) In-Reply-To: <1430834880-14482-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1430829319-22242-1-git-send-email-pablo.de.lara.guarch@intel.com> <1430834880-14482-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3] kni: fix compilation issue in KNI vhost on kernel 3.19/4.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 09:07:32 -0000 > Due to commit c0371da6 in kernel 3.19, which removed msg_iov > and msg_iovlen from struct msghdr, DPDK would not build. > Also, functions memcpy_toiovecend and memcpy_fromiovecend > were removed in commits ba7438ae and 57dd8a07, being substituted by > copy_from_iter and copy_to_iter. > > This patch makes use of struct iov_iter, which has references > to msg_iov and msg_iovln, and makes use of copy_from_iter > and copy_to_iter. > > Changes in v2: > - Replaced functions memcpy_toiovecend and memcpy_fromiovecend > with copy_from_iter and copy_to_iter > > Changes in v3: > - Fixed variable names > - Add missing checks > > Reported-by: Thomas Monjalon > Signed-off-by: Pablo de Lara Applied, thanks