From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 2/3] examples/l3fwd: fix using packet type blindly Date: Fri, 25 Mar 2016 19:24:15 +0100 Message-ID: <2073615.12ioEhNyJW@xps13> References: <1456795416-118189-1-git-send-email-jianfeng.tan@intel.com> <1458866867-39582-1-git-send-email-jianfeng.tan@intel.com> <1458866867-39582-3-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, konstantin.ananyev@intel.com, helin.zhang@intel.com, bruce.richardson@intel.com To: Jianfeng Tan Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 356275597 for ; Fri, 25 Mar 2016 19:26:02 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id p65so33511167wmp.1 for ; Fri, 25 Mar 2016 11:26:02 -0700 (PDT) In-Reply-To: <1458866867-39582-3-git-send-email-jianfeng.tan@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-25 08:47, Jianfeng Tan: > +* **examples/vhost: Fixed frequent mbuf allocation failure.** > + > + vhost-switch often fails to allocate mbuf when dequeue from vring because it > + wrongly calculates the number of mbufs needed. Wrong rebase here ;) > +* **examples/l3fwd: Fixed using packet type blindly.** > + > + l3fwd makes use of packet type information without even query if devices or PMDs > + really set it. For those don't set ptypes, add an option to parse it softly.