From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [130.237.48.193]) by dpdk.org (Postfix) with ESMTP id 70AFF1B3E0 for ; Thu, 31 Jan 2019 09:30:53 +0100 (CET) Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 209C31169; Thu, 31 Jan 2019 09:30:53 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gaZVHic5gg1n; Thu, 31 Jan 2019 09:30:52 +0100 (CET) X-KTH-Auth: barbette [130.237.20.142] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1548923452; bh=24puk4bhHTjVcmLHDF07NikM3e8DTSHpHVT2Fp+zdDY=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=dD67UX3WVNgHPeGAs6Zu/fXe3ol5uCJlDeq65mfZnFGTMDWiLwpA7IXxrx+U70o39 eLtjsmebxAtTkDGcOKSMhJuiRGQAegyp94iewtnAf2apsG6et2c94Lxn/ur/KBpLf9 3t6xaRpMu7jZZYuSRf/f79BgyVz5sKw8/Y2UpEzI= X-KTH-mail-from: barbette@kth.se Received: from [130.237.20.142] (s2587.it.kth.se [130.237.20.142]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id AAD3E2A72; Thu, 31 Jan 2019 09:30:51 +0100 (CET) To: Shahaf Shuler , users , Raslan Darawsheh Cc: Olga Shern , Yongseok Koh References: <26cb5e4e0840481f99d81ae8dfc28f6e@exdb05.ug.kth.se> From: Tom Barbette Message-ID: <35494c8d-b3c1-dbef-1b0a-204db86440e8@kth.se> Date: Thu, 31 Jan 2019 09:30:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] mlx5 flow MARK action does not work with RSS X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2019 08:30:53 -0000 On 2019-01-31 07:42, Shahaf Shuler wrote: > > It is not expected, Mark action can set along w/ RSS. I therefore tried different things and found that the problem was a misconfiguration of the RSS action. Thanks! For future relevance, here is a working piece of code for RSS + MARK (+END) action : struct rte_flow_action action[3]; struct rte_flow_action_mark mark; struct rte_flow_action_rss rss; memset(action, 0, sizeof(action)); memset(&rss, 0, sizeof(rss)); action[0].type = RTE_FLOW_ACTION_TYPE_MARK; mark.id = _matches.size(); action[0].conf = &mark; action[1].type = RTE_FLOW_ACTION_TYPE_RSS; uint16_t queue[RTE_MAX_QUEUES_PER_PORT]; queue[0] = 0; //TODO : enable all the queues of interest uint8_t rss_key[40]; struct rte_eth_rss_conf rss_conf; rss_conf.rss_key = rss_key; rss_conf.rss_key_len = 40; rte_eth_dev_rss_hash_conf_get(port_id, &rss_conf); rss.types = rss_conf.rss_hf; rss.key_len = rss_conf.rss_key_len; rss.queue_num = 1; rss.key = rss_key; rss.queue = queue; rss.level = 0; rss.func = RTE_ETH_HASH_FUNCTION_DEFAULT; action[1].conf = &rss; action[2].type = RTE_FLOW_ACTION_TYPE_END; Thanks! Tom