From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 01/10] examples/tep_termination:initialize the VXLAN sample Date: Tue, 23 Jun 2015 11:05:59 +0200 Message-ID: <4096525.EIJIlCU1EQ@xps13> References: <1434991265-20384-1-git-send-email-jijiang.liu@intel.com> <1434991265-20384-2-git-send-email-jijiang.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Jijiang Liu Return-path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 90324DE4 for ; Tue, 23 Jun 2015 11:07:03 +0200 (CEST) Received: by wicnd19 with SMTP id nd19so99416243wic.1 for ; Tue, 23 Jun 2015 02:07:03 -0700 (PDT) In-Reply-To: <1434991265-20384-2-git-send-email-jijiang.liu@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" 2015-06-23 00:40, Jijiang Liu: > examples/Makefile | 1 + > examples/tep_termination/Makefile | 55 ++ > examples/tep_termination/main.c | 1130 +++++++++++++++++++++++++++++++++++++ > examples/tep_termination/main.h | 123 ++++ > 4 files changed, 1309 insertions(+), 0 deletions(-) MAINTAINERS file is missing in this list. [...] > +static inline int > +validate_nb_devices(uint32_t max_nb_devices) > +{ > + if (nb_devices > max_nb_devices) { > + RTE_LOG(ERR, VHOST_PORT, "invalid number of devices\n"); > + return -1; > + } > + return 0; > +} It must be removed to build with clang: this function is unused.