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 2CF04A32A2 for ; Fri, 25 Oct 2019 08:36:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E19541C236; Fri, 25 Oct 2019 08:36:27 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0B3B92B9D; Fri, 25 Oct 2019 08:36:21 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2019 23:36:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,227,1569308400"; d="scan'208";a="282174250" Received: from dpdk-virtio-tbie-2.sh.intel.com (HELO ___) ([10.67.104.74]) by orsmga001.jf.intel.com with ESMTP; 24 Oct 2019 23:36:19 -0700 Date: Fri, 25 Oct 2019 14:37:11 +0800 From: Tiwei Bie To: Andrew Rybchenko Cc: Maxime Coquelin , Zhihong Wang , dev@dpdk.org, stable@dpdk.org Message-ID: <20191025063711.GA25838@___> References: <1571939170-19998-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1571939170-19998-1-git-send-email-arybchenko@solarflare.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-stable] [PATCH] net/virtio: fix broken Tx checksum offloads X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" On Thu, Oct 24, 2019 at 06:46:09PM +0100, Andrew Rybchenko wrote: > Missing parenthesis around expression before type cast to struct > virtio_net_hdr pointer makes the arithmetic to be in > sizeof(struct virtio_net_hdr) units. > > Use rte_pktmbuf_mtod_offset() to fix the problem. > > Type of head_size is changed to signed since some compilers bark > on unary minus applied to unsigned. > > Fixes: 1ae55ad38e5e ("net/virtio: fix mbuf data and packet length mismatch") > Cc: stable@dpdk.org > > Signed-off-by: Andrew Rybchenko > --- > drivers/net/virtio/virtio_rxtx.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Tiwei Bie Thanks, Tiwei