From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f68.google.com (mail-yw1-f68.google.com [209.85.161.68]) by dpdk.org (Postfix) with ESMTP id 11B581B1C3 for ; Tue, 25 Sep 2018 17:11:33 +0200 (CEST) Received: by mail-yw1-f68.google.com with SMTP id s73-v6so970639ywg.11 for ; Tue, 25 Sep 2018 08:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3QTlX6+0EX84cwBpBW8nUjWfI/XkPJfliUr2uqLMRAg=; b=d3C9cubbGYvo+JbFBEGV8seOdh3/9mHkXsCT4LIEa4qGVdCvHTuqkor+4hlE972ra3 TiSgieWfZOiblagLR+Ca9lnNTvBROpN+G14nsCtpLRAiVS7rt+OsABlmJwrcY1oF5xxm yzILWV1/0AafoW5m+O4qu5uxDh9Y+Cub7ZSymPLLAFDhZuZuVDlowe9wioa5JIV0spfL D5AJ7HpF287kOG1E03xgkCmX+bYJRv+j8YJbiZWbrGAtDQB5TeOI5DIpfZF6EGhHPvPm M80/TG0jaq64PudYCW+ZxerEPiW5QJpsWofLPTsY1BHqhUIWTL8fC3nVXcwxyuWhB59U 9x+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3QTlX6+0EX84cwBpBW8nUjWfI/XkPJfliUr2uqLMRAg=; b=jbRMaAQ2Xsi89tYSw21xsOmKigc/JUfrp8ml0GtIjkMG8J/SJeA0isNV/4tcQkB2Hc Kq+IQhyygGd33wq3S8TLUhh7cIb2Go2Suz0c/jbDGab37pohyax0uLn5/TyL2FhVYIB0 Oq6t8dXF5DurFwFiuJBl+ZRF+TITA8N+HMMdZyd5qT74UPkrbjeaj0l1SaPk4zy3/6i8 giDBMiUwLPR+LZDW9w9A7vHFYpbOmIA2I9FLCP+QTXHtD972pdXkAc74rDkKoRc6MK+m nsnF2SL1GCk6gS3Q9Ukl4WoAg2VU37UAPc11oMCsZhGhEHhQfZntYnu4YECZDE8YJ5Y3 T1TA== X-Gm-Message-State: ABuFfoiKktZNk0HHBy/qZDkMJX9L8AIi9QXsjWtN17f7rkDEIentiw5b 5pun/KQRqzH4C+ztkDA7mzAKv7iXvkAPyixVi6muNg== X-Google-Smtp-Source: ACcGV61neeGVyZkCoEZlTeOHu+XMQUNW2oJK5CLQMIieEPZMPNSIZkUopcMweO13MHBvVRYVnfDIlsEHDgTodnxFVqg= X-Received: by 2002:a81:3313:: with SMTP id z19-v6mr777292ywz.305.1537888292172; Tue, 25 Sep 2018 08:11:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:6fc2:0:0:0:0:0 with HTTP; Tue, 25 Sep 2018 08:11:11 -0700 (PDT) In-Reply-To: <8CEF83825BEC744B83065625E567D7C260CF34F5@IRSMSX107.ger.corp.intel.com> References: <20180910054547.18494-1-david.marchand@6wind.com> <20180910054547.18494-4-david.marchand@6wind.com> <8CEF83825BEC744B83065625E567D7C260CF34F5@IRSMSX107.ger.corp.intel.com> From: David Marchand Date: Tue, 25 Sep 2018 17:11:11 +0200 Message-ID: To: "Iremonger, Bernard" Cc: "dev@dpdk.org" , "olivier.matz@6wind.com" , "Lu, Wenzhuo" , "Wu, Jingjing" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 3/3] app/testpmd: add sanity checks on received/sent packets 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: , X-List-Received-Date: Tue, 25 Sep 2018 15:11:33 -0000 On Tue, Sep 25, 2018 at 3:17 PM, Iremonger, Bernard wrote: > Hi David, > >> -----Original Message----- >> From: David Marchand [mailto:david.marchand@6wind.com] >> Sent: Monday, September 10, 2018 6:46 AM >> To: dev@dpdk.org >> Cc: olivier.matz@6wind.com; Lu, Wenzhuo ; Wu, >> Jingjing ; Iremonger, Bernard >> >> Subject: [PATCH 3/3] app/testpmd: add sanity checks on received/sent >> packets >> >> Make use of the newly introduced rte_mbuf_check() to (optionally) check all >> packets received/sent through a port. >> The idea behind this is to help to quickly identify badly formatted mbufs >> coming from the pmd on the rx side, and from the application on the tx side. >> Setting the verbose level to some > 0 value will dump all packets in the >> associated rx/tx callback to further help in the debugging. >> >> Signed-off-by: David Marchand >> --- >> app/test-pmd/cmdline.c | 63 +++++++++++++++++++ >> app/test-pmd/config.c | 23 +++++++ >> app/test-pmd/parameters.c | 7 +++ >> app/test-pmd/testpmd.c | 123 >> ++++++++++++++++++++++++++++++++++++++ >> app/test-pmd/testpmd.h | 9 +++ >> 5 files changed, 225 insertions(+) > > There should probably be an entry in section 4.6 of the Testpmd User Guide for the > "port config all sanity_check" command. Sure, will do. -- David Marchand