From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by dpdk.org (Postfix) with ESMTP id 9DF54137C for ; Thu, 11 Feb 2016 23:57:22 +0100 (CET) Received: by mail-lf0-f49.google.com with SMTP id l143so41501536lfe.2 for ; Thu, 11 Feb 2016 14:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3ueDhfgoaTw5iUwDdzA0hgUMvbJOvLeejv2KoqJiTww=; b=aRZDFNs8FVw6arlfq6Sp/Aw+wKfjlk7i14dm4AOyuSlHdaVDvRuZgVYu/ttGjhk/dt d369OWrqcz6LPMbACPhAOhplSctM/NDdDQgeB6vEea3kIFv7P61C1+UeF51e1VXF71ez rm9jYc6BgS9l88GWyuriW+Y8rFBQrOjzN1hCDjwRuJxFMN9xMMm2mX4IyRxIHyYjlcfD a+D9IIfF5/IoC/bKonAGfBJ7EwUYVI6pSXFHH10FZED+c/y0BEAWefl1mGv549jglmR7 HPngrwvFoPux3z0oKc1nhi2igCxHGsZgKD0yyVXQNHy4cGdtkBu61Wc8xjnE6SdyXkYN bwcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3ueDhfgoaTw5iUwDdzA0hgUMvbJOvLeejv2KoqJiTww=; b=nIJ7iXUgj1fgBPzEXice2OyGY0vSMhKpcr5z+0dGVfBkjvrtc776Wwx4UaW4Fz+F9W vpcwCmYLYKS+Zv/rzYv3B3H9bNZYNFnT9UjJJy03yZ0C83+oHNCVtWVcGk7EM7uWXL6g 8uI6pbVhWnlau8rpGRJZ4qxzUL1aV0XYW2lZSpY7MxUzA6RWY0p/uxG+hAU/AIZ0PEPL V9yD+XHXu356vdsW7nCTMctjtnhrOZlGXIziFcBnoTu9jX30hQ+lxL4mrVWiJ+4XvgpE jGSngEgFu9/OwX/grNzsuOcCoLehRX2wfJPFUBBjuY89N2VDpvrMeSh7yyO0N8V3keYH +KaQ== X-Gm-Message-State: AG10YOTaYb7lA3sJndJg4wjtxUJWS4Cfv8/gnPKUTgZAYo1z4SoSaaWH14Yj6drSb58WzvxvNyQU81gsP3Dn0g== MIME-Version: 1.0 X-Received: by 10.25.87.134 with SMTP id l128mr16311851lfb.121.1455231442303; Thu, 11 Feb 2016 14:57:22 -0800 (PST) Received: by 10.25.90.199 with HTTP; Thu, 11 Feb 2016 14:57:22 -0800 (PST) In-Reply-To: References: Date: Thu, 11 Feb 2016 14:57:22 -0800 Message-ID: From: Vincent Li To: Harold Demure Content-Type: text/plain; charset=UTF-8 Cc: users@dpdk.org Subject: Re: [dpdk-users] DPDK 2.2 MLX4: problem with number of TX/RX queues X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 22:57:22 -0000 On Thu, Feb 11, 2016 at 1:36 PM, Harold Demure wrote: > Hello Vincent, > Thank you for your reply. I followed the same reasoning as you did, > looking at the source code earlier today. > > Can you send me a link that explains how to change RX for my NIC? > I have been looking around for that, and also performed the steps in the > DPDK official guide for MLX4, but apparently nothing changed (at least, the > error was still there). > I am DPDK newbie too and no MLX4 nic to play with, I think you need to find out how to enable RSS for MLX4 librte_pmd_mlx4/Makefile has some clue about RSS: mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ RSS_SUPPORT \ infiniband/verbs.h \ enum IBV_EXP_DEVICE_UD_RSS $(AUTOCONF_OUTPUT) maybe you can find the mlx4_autoconf.h and see if you have RSS_SUPPORT in it? librte_pmd_mlx4/mlx4.c has: #ifdef RSS_SUPPORT if (ibv_exp_query_device(ctx, &exp_device_attr)) { INFO("experimental ibv_exp_query_device"); goto port_error; } if ((exp_device_attr.exp_device_cap_flags & IBV_EXP_DEVICE_QPG) && (exp_device_attr.exp_device_cap_flags & IBV_EXP_DEVICE_UD_RSS) && (exp_device_attr.comp_mask & IBV_EXP_DEVICE_ATTR_RSS_TBL_SZ) && (exp_device_attr.max_rss_tbl_sz > 0)) { priv->hw_qpg = 1; priv->hw_rss = 1; //<====================================== priv->max_rss_tbl_sz = exp_device_attr.max_rss_tbl_sz; } else { priv->hw_qpg = 0; priv->hw_rss = 0; priv->max_rss_tbl_sz = 0; } priv->hw_tss = !!(exp_device_attr.exp_device_cap_flags & IBV_EXP_DEVICE_UD_TSS); DEBUG("device flags: %s%s%s", (priv->hw_qpg ? "IBV_DEVICE_QPG " : ""), (priv->hw_tss ? "IBV_DEVICE_TSS " : ""), (priv->hw_rss ? "IBV_DEVICE_RSS " : "")); if (priv->hw_rss) DEBUG("maximum RSS indirection table size: %u", exp_device_attr.max_rss_tbl_sz); #endif /* RSS_SUPPORT */ make sure you meet MLX4 library dependencies that has ibv_exp_query_device to query mlx4 properly to make sure priv->hw_rss = 1 ? after you enabled RSS, then figure out how to enable multiple RX queues or maybe it will be enabled automatically. or you can ask MLX4 community