From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 049E095D1 for ; Fri, 13 May 2016 18:20:34 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id n129so28960001wmn.1 for ; Fri, 13 May 2016 09:20:33 -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=IXkQC3+DCUd/B2/5DqdBM/rvbVsFXxZIyZ871JRrFrc=; b=uGperkD++Y7mYYmLafjgkMaOHI2Ju7seVosAtECaLVBod3QMYQrSILvVm33kdmOXBC REUvSIsTPTLpG2s5HZta2FoWKZE5YaZB0szTC0sGm5e7tfbajeoI2qWbSSoUBMsycy1m 4biSDKsZpF+7DgDbAUcCm7S6x0MGnVIlu4jm+/SGR/ZL/rFILsFfBzKT5cvlRazmviNQ ZU7PYoIstU7Ga8b5o52JKGs5a2uXuc/ofd3xXwT6SLenspPoyWga+tkb2OWHZYmbJgl1 ueXp6fG3qhGsvtK9wvKmDyJyTz8Lmzd1zFMARtqqLVFhP2jflTldL2BaA3CvOuRc0lrm 3yxQ== 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=IXkQC3+DCUd/B2/5DqdBM/rvbVsFXxZIyZ871JRrFrc=; b=JC3pjQxb4RTG71JhD0UM6r+hUqcSerXLgHGVhrDOuTNEB3xCnTGjuY+hrtEhj2iZAE QfwrsuGkjrz49/nscC+bJebwxWE1lp5pnvIMq1ecAJcIUS3/ecEUP1gmdH9TX6nr5HTQ qxIF6EefksjC10fG/pSu81h/6UFq/3RcJivXRN7ISuK6gE5RyxwBoUABcmUsKVIqzK6T sUm3ipHJjMn+YsUHr8XC2kC200f14TyGAA5o1VSfFQKnVig/9Vow6U4curyBs5xAFW2E gV0pk9VarA4hebyEhvOROWXKN9t6TUkr8P69FcJu7wM3BdZUXHLb5nBowSIIS0fDaYzM iAkA== X-Gm-Message-State: AOPr4FU3jEI+P/GBL5mvxLh8H3FSW/zvSVcxqgpYGBr+yRCvSr7pCXcU13lwS5o8FkloJ6Se X-Received: by 10.194.171.194 with SMTP id aw2mr19155370wjc.113.1463156433786; Fri, 13 May 2016 09:20:33 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id c85sm4082900wmd.0.2016.05.13.09.20.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2016 09:20:32 -0700 (PDT) From: Thomas Monjalon To: Mauricio Vasquez B Cc: dev@dpdk.org Date: Fri, 13 May 2016 18:20:31 +0200 Message-ID: <2661729.DcqZie9VKo@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1461943396-7094-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> References: <1461943396-7094-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] 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: Fri, 13 May 2016 16:20:34 -0000 2016-04-29 17:23, 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. There are other occurences: rte_eth_dev_socket_id rte_eth_add_rx_callback rte_eth_add_tx_callback rte_eth_remove_rx_callback rte_eth_remove_tx_callback I think it could be done also in examples/ethtool/lib.