From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v4 1/4] Add RIB library Date: Thu, 26 Apr 2018 15:17:10 -0700 Message-ID: <20180426151710.58b3028a@xeon-e3> References: <1524780214-23196-1-git-send-email-medvedkinv@gmail.com> <1524780214-23196-2-git-send-email-medvedkinv@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, bruce.richardson@intel.com, thomas@monjalon.net, cristian.dumitrescu@intel.com To: Medvedkin Vladimir Return-path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id C11C47EE3 for ; Fri, 27 Apr 2018 00:17:13 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id f189so10333161pfa.7 for ; Thu, 26 Apr 2018 15:17:13 -0700 (PDT) In-Reply-To: <1524780214-23196-2-git-send-email-medvedkinv@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 27 Apr 2018 01:03:31 +0300 Medvedkin Vladimir wrote: > +static inline int __attribute__((pure)) > +rte_rib_is_right_node(struct rte_rib_node *node) > +{ > + return (node->parent->right == node); > +} > + Minor nit (repeated in several places). DPDK uses Linux (not BSD) style where extra paranthesis are not needed on return statement.