<html>
    <head>
      <base href="https://bugs.dpdk.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - NIC RSS Symmetric hash is not working on Marvell OcteonTx2 (otx2) platform when configuring 4 tuple"
   href="https://bugs.dpdk.org/show_bug.cgi?id=1323">1323</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>NIC RSS Symmetric hash is not working on Marvell OcteonTx2 (otx2) platform when configuring 4 tuple
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DPDK
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>20.11
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ethdev
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dev@dpdk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pingtosiva@gmail.com
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div class="bz_comment_block">
          <pre class="bz_comment_text">The NIC RSS symmetric hash is not working on the otx2 platform i.e., client to
server and server to client traffic are not hashed to the same core. Below is
code snippet how 4 tuple hashing is enabled on NIC RSS.

As read from a different article, I have tried with symmetric hash_key as 0x00,
0x01 instead of 0x6D,0x5A. Even then symmetric hash is not working.

This is critical for my stateful application development. Kindly provide if
there is a way to implement it. Thanks! in advance.

DPDK version used is 20.11.

#define RSS_HASH_KEY_LENGTH 40
static uint8_t symmetric_hash_key[RSS_HASH_KEY_LENGTH] = {  0x6D, 0x5A, 0x6D,
0x5A, 0x6D, 0x5A, 0x6D, 0x5A,  0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,  0x6D, 0x5A, 0x6D, 0x5A, 0x6D,
0x5A, 0x6D, 0x5A,  0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,};uint8_t
symmetric_hash_key_be[RSS_HASH_KEY_LENGTH];

struct rte_eth_conf port_cfg;

port_cfg.rx_adv_conf.rss_conf.rss_hf = (ETH_RSS_UDP | ETH_RSS_TCP |
ETH_RSS_SCTP) | (ETH_RSS_IP & ~ETH_RSS_IPV6_EX);

port_cfg.rx_adv_conf.rss_conf.rss_key_len = RSS_HASH_KEY_LENGTH;

port_cfg.rx_adv_conf.rss_conf.rss_key = symmetric_hash_key;

port_cfg.txmode.mq_mode = ETH_MQ_TX_NONE;

// Other port_cfg params are updated.

rte_eth_dev_configure(port_id, nb_rxq, nb_txq, &port_cfg);
          </pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
      <div itemscope itemtype="http://schema.org/EmailMessage">
        <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
          
          <link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1323">
          <meta itemprop="name" content="View bug">
        </div>
        <meta itemprop="description" content="Bugzilla bug update notification">
      </div>
    </body>
</html>