From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by dpdk.org (Postfix) with ESMTP id 96A663250 for ; Fri, 2 Feb 2018 17:56:10 +0100 (CET) Received: by mail-wr0-f182.google.com with SMTP id a43so15610049wrc.4 for ; Fri, 02 Feb 2018 08:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VxmCQ1/HAqI0hdQrHLbrCabrPoV4T1Q91OJmzG+lasQ=; b=GbvBVjzZhkYouYBHQlE1/3h8bukEvviw1IxqVpOnzfajeHejlU1ya8MsvSK3AEKL41 6RdYIjPR9Z/MW2RCA9JWHrzx8CTk2VJvV4ascATOEdIzcES62KtOSDknlfYTqBe5VqHm Aq0hJrWwpYK0LoUACLSZWWtTBMr1WTpViSPts0liM6M4H8ruBJCmOUTPwrWCgVH54244 CqeMn/waMg5EOOj/jIzN6BObZBX9CJJFIuSVIjhcYwKExmRIsHl+5w/684bMUW7vXISE 9SD78KNkypcFt5mR0/ZDELH69W6slUe7fttQ70VnyWpHoCz+z7EUJSj6w5Pm+JYUNjAB HlOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VxmCQ1/HAqI0hdQrHLbrCabrPoV4T1Q91OJmzG+lasQ=; b=A1QP7Lt6HCCzYzAOZhp+QqxUnliBnKU7I3+h8+yH1ZTvxtdHBeatPzPrMk+nhgCZa9 qenfzeqFM/OLc7utshfeLGn2343fG+Ibm/aZP5R48V4dAJiBH6KjIl8hxN/h6TLv5v1M tOYfusz9ch+i/7yVANjN6jZzih7DktRdIFrCGw4jSNZY8Ls3w7H8n0MoTQ087JPI+hIE F1LnEDUVm3N0MuBMh8NJwnaVCzbXcXuTLjUvXcOMybq6BZKB75ZWecfjjdloNpO9BhsB LLmU7WZuZtcbabmtxzVJ9YR0hv66ecJFEG4UzVRpPtlLdg0zb43QmOe17jLuaEEvwsqN NJwQ== X-Gm-Message-State: AKwxytfpqOu3jIfLNQujAyYrsz/juCNp9SNXI8Bn/lyCui6gz2tURvuK PDaaBIXTf9eURyrNz8b2ha0gJfszS4OSLge8VnDAzQ== X-Google-Smtp-Source: AH8x224TqM6IRkE2wVCLMeMc6GP5pf9aZofSKJjBU7WQa+htZQKBzfDbqVmMYwStzchDKYuUCmTVIuguBC+Kp2qUCGE= X-Received: by 10.223.196.216 with SMTP id o24mr22738185wrf.101.1517590569670; Fri, 02 Feb 2018 08:56:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.185.119 with HTTP; Fri, 2 Feb 2018 08:56:08 -0800 (PST) Received: by 10.223.185.119 with HTTP; Fri, 2 Feb 2018 08:56:08 -0800 (PST) In-Reply-To: References: From: Stefan Baranoff Date: Fri, 2 Feb 2018 11:56:08 -0500 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] I40E VF nullptr Dreference: rx_mbuf_alloc_failed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 16:56:10 -0000 All, I was unclear if this should be usage or dev but it seemed like a dev issue to me. I'm on DPDK 16.11.2 (CentOS packages) using the I40EVF driver and in the case of rx_mbuf_alloc_failed there is a null pointer dereference in drivers/net/i40e/i40e_rxtx.c line 830. The variable 'dev' is null. Looking at it right after initializing the port/queues it appears the source of that variable ((struct i40e_rx_queue*)rte_eth_devices[0].data->rx_queues[0])->vsi-> adapter->eth_dev is null as well. I couldn't find anywhere in the code base that initialized that variable. What am I missing/not doing right? Where is eth_dev supposed to be initialized and is that just missing or is vsi->adapter->eth_dev the wrong structure to be using in the rx_mbuf_alloc_failed case? Thanks, Stefan