From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 944971B513 for ; Wed, 20 Jun 2018 19:04:21 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id n5-v6so767820wmc.5 for ; Wed, 20 Jun 2018 10:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=rE3+9IDDNjD8LTOWctyjt/z3QnYqlSixvZzg/X793MY=; b=LLYrO3cwT1247bwieFQ0vt8+aUlrjLjp7coUcOO7py0l3stVbEXvYTCR/R1PoOjdzQ tFrHOE6j9MnjDE/WWRbAnxsz0wdVeOtJcsvovPmu7xcEpx53C8NoNcRN8hJHy4GJL4nX OGVrhMk8ke7XRe/yudOmluOLeY792wV/z6rTrQJEZmZHk6ffAW7E3hverPY840SsLy/B QlXuSYKe2bd8ClIfFONy+jQVQiW5eDAHyHCf2J0H+iwWfdppxBmt4wWjMaJTMmwc0KNc JVH4q71nVCgmU/2Qky9rDRHZakQHGqLGsC6LlvbFDqy9Ui19r4MF8g98Ca0C5GUyw01E JYrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=rE3+9IDDNjD8LTOWctyjt/z3QnYqlSixvZzg/X793MY=; b=c8+RSa9FPpZWpBZzm+LhCJZV2qml9qzI0+MVJATO0AhHcR8XijtJQd9xR1IohWANyt Vk9AbcSkgLbW0Aen0ONsI26z+ooH2sOtjiRe0V5G5Xy2GN1mHX0mFju+up9EMk0toLL6 H4FBy5un4YdNt0rDRXeNgJvC2UDxP8wgIQ1Edv+UNTk4t/ueVZRIlbQWmyZDFZ2A4hZQ 4uFfZmJBpkptR8oh/BFQhuUzWDHa2MhjrDFjMptkjXnJinL3YYQvgaryGGBGLOw6xHXL 2hrpYT0iDuhZ4y3EgLxh6Yzbvjn8rffcvveqtGaSsHT2emT/kihsMfotNhMkwzrst8eZ QTVA== X-Gm-Message-State: APt69E0PjTbx7xjSb6bla4jJDesfHPceGamRPEvFcMJ8ENMHfO+7dNNI dliuhyKnWQLZPgT65YEM4DhG0k9K15cIZuijy18= X-Google-Smtp-Source: ADUXVKLGv0J+36CWC/Qa3D+iCbcpnQiOWQ9nAbOe40G/7JkplGrp6ehXLx/l2+7LiIWnJNbwATdBBm2LL74j2JDD2mE= X-Received: by 2002:a1c:4405:: with SMTP id r5-v6mr2191403wma.62.1529514261102; Wed, 20 Jun 2018 10:04:21 -0700 (PDT) MIME-Version: 1.0 Sender: dan.gora@gmail.com Received: by 2002:adf:eb43:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 10:03:40 -0700 (PDT) In-Reply-To: References: <20180620150122.45945-1-ferruh.yigit@intel.com> From: Dan Gora Date: Wed, 20 Jun 2018 10:03:40 -0700 X-Google-Sender-Auth: tpRRtQrPggctai5ZtB7iJ9PF-U4 Message-ID: To: "Hunt, David" Cc: Ferruh Yigit , Declan Doherty , Chas Williams , Bruce Richardson , Harry van Haaren , Cristian Dumitrescu , Konstantin Ananyev , Remy Horton , Ori Kam , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Anatoly Burakov , John McNamara , Jijiang Liu , dev@dpdk.org, Liang Ma , Xueming Li Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] examples: fix RSS hash function configuration 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: Wed, 20 Jun 2018 17:04:21 -0000 Hi Ferruh, Thanks for this.. I had started working on a patch to do this as well because I got bit by this error. Shouldn't all of the example applications also add the code to strip the unsupported Tx and Rx offload bits as well? It would help new users (like me!) to understand that this is a requirement for all callers of rte_eth_dev_configure(). rte_eth_dev_info_get(port_id, &dev_info); /* Only set the offload bits which are actually supported */ port_conf.txmode.offloads &= dev_info.tx_offload_capa; port_conf.rxmode.offloads &= dev_info.rx_offload_capa; thanks dan On Wed, Jun 20, 2018 at 8:11 AM, Hunt, David wrote: > Hi Ferruh, > On 20/6/2018 4:01 PM, Ferruh Yigit wrote: >> >> ethdev layer introduced checks for application requested RSS hash >> functions and returns error for ones unsupported by hardware >> >> This check breaks some sample applications which blindly configures >> RSS hash functions without checking underlying hardware support. >> >> Updated examples to mask out unsupported RSS has functions during device >> configuration. >> Prints a log if configuration values updated by this check. >> >> Fixes: aa1a6d87f15d ("ethdev: force RSS offload rules again") >> >> Signed-off-by: Ferruh Yigit >> --- >> Return error added in this release, so no need to backport the fix to >> previous versions. >> >> Cc: David Hunt >> Cc: Liang Ma >> Cc: Xueming Li