From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 7829E1396 for ; Fri, 29 May 2015 09:52:15 +0200 (CEST) Received: by wicmx19 with SMTP id mx19so8726868wic.0 for ; Fri, 29 May 2015 00:52:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ojVfpDoOce85rF5qwD2ioLuiMc/RejK/Oc/30tYq638=; b=Hi1fZl0nEK7pcbiz7ckCC7QDw9PbnFjX0xvJjZGBSKNrmc3+EYpsVmaseL0YOTs+u7 4bTBCWEzz3Zv5Dm/gjoxKwXH5PnWkpDpHWfES0hO6wDRni0A2ts1BxgtU+GzWya2xtCp 7CBgLOME2Dote/q6B2HW6Cfm6Qf97mnD+thrhqq0qBKWDX2PtsT0535fr9ZwS68Cx2IX Uqam3sbwMDDWyY4sd5Xe7a6l9afvk+Whdtio47l4EZpj4xp+91CZsGm0BD7hdx+W/wWh xryXwrIM1Nbjp9b3wrF2/KYZ3dY42BHHnPmYslAlhYnAF0wr4Dep0uTRKZPOljopcyEc l2Fw== X-Gm-Message-State: ALoCoQmLcTAQbElCQOUP1melSpMLjJ+B4uUjtCPwPFLs0syVtu1cZFdTs5sbYKUaxzQ9FE5QH02E X-Received: by 10.194.52.37 with SMTP id q5mr13087427wjo.122.1432885934353; Fri, 29 May 2015 00:52:14 -0700 (PDT) Received: from [10.16.0.189] (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id wv3sm7062147wjc.0.2015.05.29.00.52.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 00:52:13 -0700 (PDT) Message-ID: <55681AA9.3010903@6wind.com> Date: Fri, 29 May 2015 09:52:09 +0200 From: Ivan Boule User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Stephen Hemminger References: <1432825523-19006-1-git-send-email-ivan.boule@6wind.com> <1432825523-19006-2-git-send-email-ivan.boule@6wind.com> <20150528092256.292e566c@urahara> In-Reply-To: <20150528092256.292e566c@urahara> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering 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, 29 May 2015 07:52:15 -0000 On 05/28/2015 06:22 PM, Stephen Hemminger wrote: > On Thu, 28 May 2015 17:05:19 +0200 > Ivan Boule wrote: > >> + if (port_id >= nb_ports) { >> + PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); >> + return -ENODEV; >> + } >> + > > Use rte_eth_dev_is_valid_port() function instead. > I missed that. Thanks.