From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=PQqn/BbmqVnhfRWXSKusK+nCDqFZwvRggTnLZ2Qdr9c=; b=SDcVyaAr51TLiRHXnyePKJy1s82rCdT75yCmlsGieDtI3ayvopmLEFtHBezJdbKdiQ 0FawnoQedvHkB6fzqg20Q8GfrFOozpS0SqUTw946CDLGnBfwu0Iho/QNnqD46vN/vOf1 WDEaSE0b2Cpe+LHIhynd+6mNzgL5emIBCDXXzMXaGkn1wQrEE5jX0U/5NDQgrjBPexhR XuNrOQwwqKk7lkeBgDdTTXiJIyXsHdGDT5DMvMDR5J+R58z4FHjB7Qu4IgSOfl8ANYr3 i2LkG6GTEX6uFhgEIngKPK+4ScKb9DpXfPHmT5AjRcOEhW55tbfcP+GrZWRm7L/AYx6C OXAg== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=PQqn/BbmqVnhfRWXSKusK+nCDqFZwvRggTnLZ2Qdr9c=; b=HxDaSw5dtzXgyTpM2YnVrtRD65bzrNYeC1n+Tv9oGySRI+ibRbMGkNYH09DC5FXe1p W6oVtpSP6WqWmGkMZcCbOERLcBKeYizr5vWZAL3Jz8U7LikCnLZBGWqK2nMdmytT2Jox 4eVYGBs/IuLw110qdoZteWrvhHjYijUpKZsd0ulHbLIK8DueXtUHuVdvr60vlpmeU7uj Qm9PMr1Ur42itDPtut2kxa39ERoDHi8mXnLQYbVI0Zj3t1cwkMHwTjI3ja9dCax6Y+qd vhQyi44+fFIzmpiihuiTb/6l7bmRiFYL47MpGTmjDQ8OwzjGH4rmraM44UM/eA+FYBoE El/g== X-Gm-Message-State: ALoCoQk576TT4mO7OpvQ6ZMT1Ae7MaV9ZciyEjd4J1qpMh0lhkqqo25tVitqrvnUwANCAP9YHpNW X-Received: by 10.28.85.129 with SMTP id j123mr6435556wmb.77.1448474421783; Wed, 25 Nov 2015 10:00:21 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id jt9sm24316654wjc.24.2015.11.25.10.00.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 10:00:21 -0800 (PST) From: Thomas Monjalon To: "Montorsi, Francesco" Date: Wed, 25 Nov 2015 18:59:03 +0100 Message-ID: <2079132.PHeD38B2Uf@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <23c134dd50bf4f9ead41dc6b3467984f@bilemail1.empirix.com> References: <20151125080742.5451df3c@xeon-e3> <23c134dd50bf4f9ead41dc6b3467984f@bilemail1.empirix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] rte_eth_tx_queue_setup() failing (error -22) when setting up tx queues on a VMXNET3 port... 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: Wed, 25 Nov 2015 18:00:22 -0000 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.