From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 2241745648
	for <public@inbox.dpdk.org>; Thu, 18 Jul 2024 17:36:12 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C69674025E;
	Thu, 18 Jul 2024 17:36:11 +0200 (CEST)
Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com
 [209.85.210.172])
 by mails.dpdk.org (Postfix) with ESMTP id 917044003C
 for <users@dpdk.org>; Thu, 18 Jul 2024 17:36:10 +0200 (CEST)
Received: by mail-pf1-f172.google.com with SMTP id
 d2e1a72fcca58-70af5fbf0d5so687061b3a.1
 for <users@dpdk.org>; Thu, 18 Jul 2024 08:36:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1721316970;
 x=1721921770; darn=dpdk.org; 
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:subject:cc:to:from:date:from:to:cc:subject:date
 :message-id:reply-to;
 bh=g40pcCjdgWCVngk+oNNnWM8Or1Jzlif/k1XpWbBBh74=;
 b=NYgZfOzdw1fRjDIWvH+keHSesPAfaQ09efFOb8Bmw5o5D3/yZcIxp4/TMnhRTvF7Y7
 ltxsVQPEwIXFN9TFF457GVbED9cGAObXlQCgcMAQWCMzDkFMDraR+VsiCVbhWIUq8NpE
 kLPUxgDJ3MJUGoGq2ms+gX8TNJVeOiEEU7PNM3fSBwhtp3dEBcYRSAHyPxrxE2DEvYcU
 IHVAZnxD2ghOwzY1DWfdfqTWmhptdLVmtqlFS380Z7qqKX6wfJ1s6TnVtHQlMuYZHfQE
 EddCGf/BQyxYXDUUshQ0skQ37YLJ046+gNXUdPhn9TZ8FvPzTLnSzEkLPTyGUb14To5t
 nOjw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721316970; x=1721921770;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=g40pcCjdgWCVngk+oNNnWM8Or1Jzlif/k1XpWbBBh74=;
 b=vK8vuwjW106f2ivD1F2zabFv9Ul5Ay/7Czmqci+NpaYFBOC3+Dfxxeu9eYuBhbjD5D
 3ClKNY9FpnZUcBwlR22iqhwOQK9DMPZ8AC1nQX/Dvzi5aEaI2EGBOEXV94eGYi7iqUvS
 bCsRRIm6k1GBOdTy99E6PPYM33zr7U+B4bX4OOknseaaAGs5ElphePd6fIiRfQyCEYK9
 axVBTyPDXWSb372jeevpFV+IB66jR1kAlQJjrijXeNaU2R9NdMJ8WVHFAcqx5F7ZRnqY
 yiQiLBSCbryRtNSpwMis9DoC8Z/CV67jz8KZ4F1RBUBq+H1C+H1mfi0irPNT0DSQn1iR
 gGIg==
X-Forwarded-Encrypted: i=1;
 AJvYcCVS/vzq9kESXPG34GIhN+HynsSvHEq1LoNi9SMhFT2GfqWJOTIhlSomGDZGhkccFpgf1+6kcAlkxCfBSNEmwQ==
X-Gm-Message-State: AOJu0Yy4KMaiI3y7GIscPJV7G0c0q0HWn7yEcEDHmj2E5+s/4niPLG0U
 e7PPqklYS4r/rFFwQ4aZmIyDml8vpBf1MT2i3pYKpbnU6LRScgPs39BQ1zeqgZ8BFdw6rutBHpJ
 AFr4=
X-Google-Smtp-Source: AGHT+IH1AMTpeS/+cyMW/tSVOFGBCU2ga17Ld3oqEgtsed1aGxDcD5VhI6mWye6LSwz6BTy5kPkYsg==
X-Received: by 2002:a05:6a00:1ace:b0:706:5c4c:1390 with SMTP id
 d2e1a72fcca58-70ceeb4b4bbmr4822957b3a.7.1721316969639; 
 Thu, 18 Jul 2024 08:36:09 -0700 (PDT)
Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-70b7eb9e290sm10220147b3a.5.2024.07.18.08.36.09
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Jul 2024 08:36:09 -0700 (PDT)
Date: Thu, 18 Jul 2024 08:36:07 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: Raghavan V <Raghavan.V2@tatacommunications.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: FDIR packet distribution with specific multiple RX queues.
Message-ID: <20240718083607.2b70d734@hermes.local>
In-Reply-To: <TYZPR04MB54167C8310DB1191A38631F3C8AC2@TYZPR04MB5416.apcprd04.prod.outlook.com>
References: <TYZPR04MB54167C8310DB1191A38631F3C8AC2@TYZPR04MB5416.apcprd04.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
Errors-To: users-bounces@dpdk.org

On Thu, 18 Jul 2024 11:36:43 +0000
Raghavan V <Raghavan.V2@tatacommunications.com> wrote:

> Is there any way to distribute packets evenly (Like RSS) to specific multiple RX queues in RTE_FLOW_ACTION_TYPE_QUEUE DPDK Flow director?
> 
> Desired action:
> 
> uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};
> struct rte_flow_action_queue queue = {.index = queue_indices};
> struct rte_flow_action action[]={
>     [0]={.type = RTE_FLOW_ACTION_TYPE_QUEUE,.conf = &queue},
>     [1]={.type = RTE_FLOW_ACTION_TYPE_END}
> };

You want RTE_FLOW_ACTION_TYPE_RSS

uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};
struct rte_flow_action_rss rss = {
	.types =  RTE_ETH_RSS_UDP | RTE_ETH_RSS_TCP,
	.queue_num = RTE_DIM(queue_indicies),
	.queue = queue_indicies,
};

struct rte_flow_action action[]={
     [0]={.type = RTE_FLOW_ACTION_TYPE_RSS,.conf = &rss},
    [1]={.type = RTE_FLOW_ACTION_TYPE_END}
};

> Is this action limited to drivers specific?
Yes, drivers implement only what hardware can support.