From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: rte_eth_tx_queue_setup() failing (error -22) when setting up tx queues on a VMXNET3 port... Date: Wed, 25 Nov 2015 18:59:03 +0100 Message-ID: <2079132.PHeD38B2Uf@xps13> References: <20151125080742.5451df3c@xeon-e3> <23c134dd50bf4f9ead41dc6b3467984f@bilemail1.empirix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Montorsi, Francesco" Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 064D79422 for ; Wed, 25 Nov 2015 19:00:22 +0100 (CET) Received: by wmvv187 with SMTP id v187so268898826wmv.1 for ; Wed, 25 Nov 2015 10:00:21 -0800 (PST) In-Reply-To: <23c134dd50bf4f9ead41dc6b3467984f@bilemail1.empirix.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-11-25 17:55, Montorsi, Francesco: > Since I was using the rte_eth_rx_queue_count() function in one place, and VMXNET3 does not support it, I'm getting a SEGFAULT. > So next question is: is user's task to check for validity of pointers inside dev_ops before calling driver functions? Because rte_eth_rx_queue_count() and companion funcitons have no safety checks apparently (!!!) Bruce already sent a fix for this issue. It should be applied on HEAD in few minutes.