From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id C35045677 for ; Tue, 24 May 2016 15:32:00 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id n129so130469739wmn.1 for ; Tue, 24 May 2016 06:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=OlxONaUMzgRMdRLplPxzdvMi78mcC5CHDy1cQAtf5es=; b=YLQRNbGxXUrpXWX9rVQmhgRjMdevsNEUgv9ZMWGdauZr2ANE5bk6RYVFytyn2pXRup XyGHyrYNPpatOqAjT8ZChKLUegOdNtQqWlqhCo3/WERvxtdQzpN702KRrK9hqecPJdzl Y00/s+RFiSE9NRd+0+BNcl/UsW2wIryz42Kzn++rzBmiC7UD3m5vRZyUFvNnMFXm4u95 ip31Rp907iqI4Vnw9PKxY+z0+OvFQUrWnRA6eWrLYkyR45bHAuWkUepNaC4Wu2Dk48UZ uIp8UpZhVidzuwwZ3gZ+t0P6vVfcNOpnhhjjPzN+4KiEexzH/YU/WVq4WZLOVleS4Fvv r44g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=OlxONaUMzgRMdRLplPxzdvMi78mcC5CHDy1cQAtf5es=; b=R9Os406w3L5bOsp14ZlfbOCsrgydmqpH0LC/a5x1TV4jpQsSM0LC8f+epwvnRYBqlC nizJ+kokN9xx2Dh63nIDMzqXGIFLrDALfTD0xpvskfnS+OmF1kpmbTk+TwTBekofNPrI 0pBOUWPyBd8+g7vuWaC5ViNz1SPtsj5aXYBqRflD10aO5ZTSecFCU80iNo6YpBAqyy6N 1gQSrufgpzOzOPy5MnXB83b9ecM29/PxtUI6JacQqzp3LQgJE3XUPmrsA8NPqiR2xHST 4TTIor7SnpHNzk3c9VUzSFkej8Bjr7SovuyQMfE9e7AYpuEWAbvM/Dnyt4q5l9EcaBQO ba+w== X-Gm-Message-State: AOPr4FWoTCZt4KpCBcPpijmGYPMhry3EJzH/BLapi8S1g8jOu1VtFcD/tdStrTP1DeEdOgc+ X-Received: by 10.28.63.193 with SMTP id m184mr21126889wma.85.1464096720530; Tue, 24 May 2016 06:32:00 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id k127sm3738639wmf.21.2016.05.24.06.31.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2016 06:31:59 -0700 (PDT) From: Thomas Monjalon To: Mauricio Vasquez B Cc: dev@dpdk.org Date: Tue, 24 May 2016 15:31:58 +0200 Message-ID: <1829201.yogvSk4m0d@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1463598911-18176-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> References: <1463515316-4949-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> <1463598911-18176-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3] librte_ether: use RTE_ETH_VALID_PORTID_OR_ERR_RET to check port_id X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 13:32:00 -0000 2016-05-18 21:15, Mauricio Vasquez B: > The RTE_ETH_VALID_PORTID_OR_ERR_RET macro is used in some places > to check if a port id is valid or not. This commit makes use of it in > some new parts of the code. > > Signed-off-by: Mauricio Vasquez B > --- > v3: > - use it also in rte_eth_add_rx_callback and rte_eth_add_tx_callback > v2: > - add missed case > - change also cases in examples/ethtool/lib/rte_ethtool.c > examples/ethtool/lib/rte_ethtool.c | 15 ++++++----- > lib/librte_ether/rte_ethdev.c | 51 +++++++++++++------------------------- > 2 files changed, 24 insertions(+), 42 deletions(-) I've fixed also 2 bond functions and removed some whitespace changes. Applied, thanks