From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by dpdk.org (Postfix) with ESMTP id 248415A82 for ; Mon, 19 Jan 2015 17:03:19 +0100 (CET) Received: by mail-ob0-f174.google.com with SMTP id wo20so19611951obc.5 for ; Mon, 19 Jan 2015 08:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidebandnetworks.com; s=google; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=UPGcm1RrNmHaejVN+n3atlTejB1V25kJUuZ4G7pbRaQ=; b=Vohtm0Lh7jbe2H9l/OU1fxAFs1Qb+Z8ilgXuEllmJXF4ewzMFdvN6eDYo3yhnk79UV J4GqOBlWxt7XPNtFxwOOqPlNwQQOqC5yEt+p+XkSl2ArgfVY7pRrJfAj8kPshSPI+6Wt NrkMAypJ5bMmrudIMdlKUJkqpb33KgBm47gek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=UPGcm1RrNmHaejVN+n3atlTejB1V25kJUuZ4G7pbRaQ=; b=dpTdKSn2oRmDlLVA0P9FVlw9fmKGrswWISPMVav2YCH8crK4n9xZUbVvVNZXivCx1u NF1ZU6o6u9fg8jfb7wCM0T89XRLxMXaFyGkKOYtdCLFNUWjOuS6ekwTSJmSmJY0I5NBK cqXkUMI7oXjz7NyRtQTuAgKPj/D2DK+unEyvVePaSjLRdYspcSnl5G6CQT1ga34oelXF 9Az+0q5AQjSExxgVcjaYfVnkAYASafwhksdbGdG36+A7wmEKtAnTz0L35WgqgqOSDpQd VaDOHaP/YcM7JyocWKTXgIRCrzNL+Z41l0qOuo9fg6I8oNGzOubjUm+MtwYkIOzjGoQI EukA== X-Gm-Message-State: ALoCoQmGKjgW2VeCCU774wUceoJCIqN6k9/JPTQlAD9ftc9TmXXhttcc9/aVN0roFrdBWY06skeQ MIME-Version: 1.0 X-Received: by 10.202.220.85 with SMTP id t82mr7871735oig.43.1421683398493; Mon, 19 Jan 2015 08:03:18 -0800 (PST) Received: by 10.202.48.79 with HTTP; Mon, 19 Jan 2015 08:03:18 -0800 (PST) Date: Mon, 19 Jan 2015 11:03:18 -0500 Message-ID: From: Kamraan Nasim To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] RSS Reta redirection not working on 82599 NIC(Niantic) 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: Mon, 19 Jan 2015 16:03:19 -0000 Hello, Following from a previous thread, I took up Bruce Richardson's advice to modify the RSS redirection table(RETA) to exclude entries pointing to a specific queue: For e.g, this is the RETA table before any modifications are done: *Default *Reta table: 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 0 0 0 0 I have initialized 3 queues on this NIC(82599-Niantic) and as can be seen, NIC will forward traffic to queue's 1 & 2. Now the reta table is modified so that everything goes to queue 0 *Modified* Reta table: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 However despite this, RSS is loadbalancing packets on queues 1 & 2. The following is a snippet of my code: /* * Rewrite the RETA(Redirection Table) for RSS * We want all traffic to be RX'd on queue 0 * and only filtered traffic to be mapped to specific * queues, with one per filter for us to report * statistics */ struct rte_eth_rss_reta port_reta_conf; memset(&port_reta_conf,0,sizeof(struct rte_eth_rss_reta)); port_reta_conf.mask_lo = 0xffffffffffffffff; port_reta_conf.mask_hi = 0xfffffffffffffff; int reta_ret = 0; for (int rc = 0; rc < ETH_RSS_RETA_NUM_ENTRIES; rc++) { port_reta_conf.reta[rc] = 0x00; } reta_ret = rte_eth_dev_rss_reta_update(port, &port_reta_conf); printf("Reta return code: %d\n", reta_ret); I have tried to restart the port, start/stop, linkup/linkdown but the effect is the same: Reta table shows that it has all been zero'd out however packets are still send to all configured queues. I am using DPDK v1.7.0 Have others come across something similar? Any clues would be much appreciated :) --Kam