<div dir="ltr">Hi Stephen,<div><br></div><div>Thanks for your response,</div><div>I have verified that too, but that is not the case.</div><div><br></div><div>Thanks,</div><div>Nagesh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2024 at 8:34 PM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 15 May 2024 13:50:38 +0530<br>
Nagesh Mallappa <<a href="mailto:mallappanagesh@gmail.com" target="_blank">mallappanagesh@gmail.com</a>> wrote:<br>
<br>
> Hi Team,<br>
> <br>
> We are using a C3 GCP instance having GVNIC with DPDK enabled.<br>
> We are using latest version of DPDK ( dpdk-24.03 ) to configure RSS key, we<br>
> understand C3 GCP instance with gvnic supports Toeplitz rss algorithm (<br>
> Reference -<br>
> <a href="https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c" rel="noreferrer" target="_blank">https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c</a><br>
> ),<br>
> but we are hitting below issue.<br>
> <br>
> *Problem Statement - The RSS Hash value returned by the gvnic driver is<br>
> different and is not matching the one computed by Toeplitz.*<br>
> <br>
> Using below script to compute rss hash value from Toeplitz.<br>
> (<a href="https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7" rel="noreferrer" target="_blank">https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7</a>)<br>
> <br>
> Consider below data to compute RSS Hash value -<br>
> <br>
> Source IP - 79.124.62.122<br>
> Destination IP - 192.168.7.28<br>
> Source Port - 49442<br>
> Destination Port - 55327<br>
> RSS Key - {0x94e3e97e, 0x4abac401, 0x1e0edbf, 0xe059e1f4, 0xb6e27dff,<br>
> 0xdf55c916, 0xe9e6e4db, 0x1f9fb82c, 0x1e0edbf, 0xe059e1f4}<br>
> <br>
> *Hash Value returned by Toeplitz - 0x8bbafd0f*<br>
> <br>
> Gvnic dpdk pmd driver which uses Toeplitz RSS hash algorithm too is<br>
> expected to compute above RSS Hash value but we see the Hash value stored<br>
> in dpdk mbuf to be 0xc6a15941 which is not right.<br>
> From the DPDK side we have ensured RSS offloading configuration is done<br>
> appropriately, but still we are seeing above mismatch.<br>
> <br>
> We request you to please help us understand why this mismatch is happening<br>
> and is this expected behavior of gvnic on C3 instance.<br>
<br>
Could you see if it is a driver byte order issue by byteswapping the key?<br>
</blockquote></div>