From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 08EEFC32E for ; Thu, 28 May 2015 18:22:53 +0200 (CEST) Received: by pdbki1 with SMTP id ki1so45260434pdb.1 for ; Thu, 28 May 2015 09:22:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=9kHByDL0xmFG45PAw83MOtoaMEfBP1TmY4lw/KaLdZg=; b=KOumoYcNUDVhTimgH1CyVH6QcdD2ZodeqwEDVFGg3fwxC65m27wnPIu0/y1eZlUaDP jW95BKMsO7MnGcad9YA7Zl49vdnHKl1Y7BEwrbkg2a/GtMuB81M/wJRI74A9iQ9mUVk7 6ApODKaXhXcvpyfOD939D6mPRK2VZoSxfGX69bLrf7GjwuIC2rCAzYF6Oqxniw22de1I ysqqeyoj41OVbsMSqKJ1ffFE5Fnxm6XUeVD/oS6hzHxyiGWbS0hbgmUOks1uAAyF6B6q yaCEAEz8vdEgobqQSoVw5Ek+PKJcDj3QANSv7Bck7t/UYms7vlLQIcIucqgzXpriNqbj +BKw== X-Gm-Message-State: ALoCoQlVvJwHzzJvXoy54vKVe9oGVdUrwtbUcF+KGmDTsSqY+b/tr+UqWb/eaHIRJwXgHY6GIaup X-Received: by 10.68.197.161 with SMTP id iv1mr7120011pbc.0.1432830172336; Thu, 28 May 2015 09:22:52 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id fh9sm2870518pdb.17.2015.05.28.09.22.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 09:22:52 -0700 (PDT) Date: Thu, 28 May 2015 09:22:56 -0700 From: Stephen Hemminger To: Ivan Boule Message-ID: <20150528092256.292e566c@urahara> In-Reply-To: <1432825523-19006-2-git-send-email-ivan.boule@6wind.com> References: <1432825523-19006-1-git-send-email-ivan.boule@6wind.com> <1432825523-19006-2-git-send-email-ivan.boule@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Thu, 28 May 2015 16:22:53 -0000 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.