From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 108DC5A54 for ; Fri, 22 Jul 2016 00:46:49 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id o80so42894635wme.1 for ; Thu, 21 Jul 2016 15:46:49 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=YdJ+we5wsYF4ZWG0dY+y0myhbsXFlvSt6SdjPOj4DyE=; b=lQArh3ek09CGbaMYpiACrcDn8K+xMY+rq68HISQUSIIH8UgtE5nPnQhYMiacpTskj/ BMzSLKYmg84H5KdbdGUzXJ7qJlQmRu0KaxFr83znZK/yro7cAqvtbm5R6gcly2chHzds BZbdPlokrupWEdpCvEJ0qtJd1AI73ZwIGc/AaW50re39CMCW/A7HVRq1v4YaYx/wVAEc 6bODMkQeeH/rxQgrRX7Zu35+HlRVivmtxi3rewbxS2NivGCGyzlAd5YUKd2TqITEKh5p NzJnfLGZNd4kiil4fCYQlG964n17uIotUzvxmzK5qWClEuptJi30HRWhw+nqUoU2ElJK Br8A== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=YdJ+we5wsYF4ZWG0dY+y0myhbsXFlvSt6SdjPOj4DyE=; b=WKrYoMKjK85qduOarw6R4tAjcsGR3O7XuBLTuajxD6yIR+e1LwOWAglv3UwQiDQN3F A9mpFxPuytKM7CeSwruk1HyIwoH9QAu3kYAkRGD03mfs0rzPzsd7swiUTJtI+wQdeOpe ERkJqDeEzyd+a3bfa2dXLhpFNZ04aV//NGe4FYrKSViyJVW4PL2MXoHWDq4D6W1LStkr gE7yTfy2E3hMGa7cKAqaGehdLGEDKmSfqsQEG0vTc14r6JGw2y5vmnYpWM54MqjXtq3U 4u8Y6pIkTEv0xLDMnAnmcukQH2cQJ1KOSrAZ9XyhIfh1x/YnaWIdwZ6rZ8sao04jYgQz T1VQ== X-Gm-Message-State: AEkoous/G3lDgjwTWZ6jIjPeKf7jv7xGgVqat2T+Fb+o5fW7EXaG7NTCsTmAuMoth1D7ETwD X-Received: by 10.28.207.197 with SMTP id f188mr884000wmg.69.1469141208785; Thu, 21 Jul 2016 15:46:48 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id a2sm7870656wma.2.2016.07.21.15.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 15:46:48 -0700 (PDT) From: Thomas Monjalon To: John Daley Cc: dev@dpdk.org, bruce.richardson@intel.com Date: Fri, 22 Jul 2016 00:46:47 +0200 Message-ID: <2741378.dfrx3epoUB@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1468968163-31556-1-git-send-email-johndale@cisco.com> References: <1468968163-31556-1-git-send-email-johndale@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] net/enic: fix possible Rx corruption 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: Thu, 21 Jul 2016 22:46:49 -0000 2016-07-19 15:42, John Daley: > Initialize the mbuf data offset to RTE_PKTMBUF_HEADROOM as the > enic takes ownership of them. If allocated mbufs had some offset > other than RTE_PKTMBUF_HEADROOM, the application would read mbuf > data starting at the wrong place and misinterpret the packet. > > Fixes: 856d7ba7ed22 ("net/enic: support scattered Rx") > > Reviewed-by: Nelson Escobar > Signed-off-by: John Daley Applied, thanks