From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by dpdk.org (Postfix) with ESMTP id C8B67FFA for ; Tue, 29 Aug 2017 20:42:56 +0200 (CEST) Received: by mail-pg0-f41.google.com with SMTP id 83so13128852pgb.4 for ; Tue, 29 Aug 2017 11:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mofrXHekskDcrTT59W2NC2ILhljxNpfjJVA7fuhii2I=; b=rMxX+dMHH9hoSzknTofkcj9cf+RXFBUdW0dqln+ixV32BYNQhzdr6tRVBqM519Il08 L01UvwEfBv6ZdCxmI1dVwK7KmkLtYwMXwiVWwleRfyDOsL4IRIcZCOufU1FYCWznH1Xw MUWEmpCDW9LfHqgQ8czMcaQcJ+0oSkdmbt3/5x1T8TcGrfdUnzaASFLnhgb6UZoTab7K dBlMzmvIfPnhCVdZpaePkUQU1wHbxJIB6XW+C538CiUhEDNn4cRIm7nsXk/AaKTWr7o1 23Idn63JTKOR3G104rcsXqu3C/Ge0QPbqUdibKCjWLErSDpnSISNQLX496CkmeYXQJdc ZtGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mofrXHekskDcrTT59W2NC2ILhljxNpfjJVA7fuhii2I=; b=DKVuZpzZxGS35SLimW7iGiCL8cSYaN8mWAjFCvteNLRB7i43PC0FZCo0csDiRdWAS4 +p4RAbJYTPnmzJTJFeeV8/Wa8KfvGqEZ81vUE5U8XFd3NuL27WADrPqyz2eTU0z6dr3X Uyqzv66m5D37bMkdybUhch4Q8iIkvs8A8DzXmyOWPQioF+5l+yk1VAtK8f4ixMGTF2im pfN0E8otXcb3xWpVOSIlXz9ijYkCXfhidRxF6+uuaA9W58cX4t1D6Z0QyoYjOveX/ZWj S0vt064W8BQD2XgL7kIJyZMPi0j22iLl4W+t8cTkHbBKKTRmKf6rBitdX7rOD4ODlnIb r1bg== X-Gm-Message-State: AHYfb5h1lUtVFLgc2vFb7a2ApSUxqo3dPS3TFOJnAnaqRNUkO18gMRMq zDKaKTgcptzfHDrS X-Received: by 10.84.217.205 with SMTP id d13mr1563466plj.135.1504032176000; Tue, 29 Aug 2017 11:42:56 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id i2sm5954526pgn.73.2017.08.29.11.42.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2017 11:42:55 -0700 (PDT) Date: Tue, 29 Aug 2017 11:42:54 -0700 From: Stephen Hemminger To: David Harton Cc: konstantin.ananyev@intel.com, dev@dpdk.org Message-ID: <20170829114254.7b563118@xeon-e3> In-Reply-To: <20170829155056.12563-1-dharton@cisco.com> References: <20170829155056.12563-1-dharton@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ixgbe: add counter to track sw tx 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, 29 Aug 2017 18:42:57 -0000 On Tue, 29 Aug 2017 11:50:56 -0400 David Harton wrote: > + if (n < (IXGBEVF_NB_XSTATS + IXGBE_NB_SW_STATS)) > + return (IXGBEVF_NB_XSTATS + IXGBE_NB_SW_STATS); Please don't use BSD style. Return does not need parenthesis.