<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto">Hi <span>Stephen,</span></div>
<div dir="auto"><span>Thanks for your response.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>As our application has limitations while using RSS, </span></div>
<div dir="auto"><span><span style="font-size: medium; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">I would prefer a similar approach to RTE_ACTION_TYPE_QUEUE.</span></span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>Since flow director supports only one RXQ index, I could not be able to achieve desired outcome.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>Please suggest if any approach like RTE_ACTION_TYPE_QUEUE but not RSS could match my requirement.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>Thanks,</span></div>
<div dir="auto"><span>Raghavan V</span></div>
<div dir="auto"><span><br>
</span></div>
<div id="mail-editor-reference-message-container" dir="auto"><br>
<hr style="display:inline-block;width:98%">
<div id="divRplyFwdMsg" style="font-size: 11pt;"><strong>From:</strong> Stephen Hemminger <stephen@networkplumber.org><br>
<strong>Sent:</strong> Thursday, July 18, 2024 9:06:14 pm<br>
<strong>To:</strong> Raghavan V <Raghavan.V2@tatacommunications.com><br>
<strong>Cc:</strong> dev@dpdk.org <dev@dpdk.org>; users@dpdk.org <users@dpdk.org><br>
<strong>Subject:</strong> Re: FDIR packet distribution with specific multiple RX queues.<br>
</div>
<br>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><font size="2"><span style="font-size:11pt;">
<div class="PlainText">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.<br>
<br>
On Thu, 18 Jul 2024 11:36:43 +0000<br>
Raghavan V <Raghavan.V2@tatacommunications.com> wrote:<br>
<br>
> Is there any way to distribute packets evenly (Like RSS) to specific multiple RX queues in RTE_FLOW_ACTION_TYPE_QUEUE DPDK Flow director?<br>
><br>
> Desired action:<br>
><br>
> uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};<br>
> struct rte_flow_action_queue queue = {.index = queue_indices};<br>
> struct rte_flow_action action[]={<br>
>     [0]={.type = RTE_FLOW_ACTION_TYPE_QUEUE,.conf = &queue},<br>
>     [1]={.type = RTE_FLOW_ACTION_TYPE_END}<br>
> };<br>
<br>
You want RTE_FLOW_ACTION_TYPE_RSS<br>
<br>
uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};<br>
struct rte_flow_action_rss rss = {<br>
        .types =  RTE_ETH_RSS_UDP | RTE_ETH_RSS_TCP,<br>
        .queue_num = RTE_DIM(queue_indicies),<br>
        .queue = queue_indicies,<br>
};<br>
<br>
struct rte_flow_action action[]={<br>
     [0]={.type = RTE_FLOW_ACTION_TYPE_RSS,.conf = &rss},<br>
    [1]={.type = RTE_FLOW_ACTION_TYPE_END}<br>
};<br>
<br>
> Is this action limited to drivers specific?<br>
Yes, drivers implement only what hardware can support.<br>
</div>
</span></font><br>
</div>
</body>
</html>