* RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
@ 2024-05-15 8:20 Nagesh Mallappa
2024-05-15 15:04 ` Stephen Hemminger
2024-05-16 8:56 ` Ferruh Yigit
0 siblings, 2 replies; 6+ messages in thread
From: Nagesh Mallappa @ 2024-05-15 8:20 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
Hi Team,
We are using a C3 GCP instance having GVNIC with DPDK enabled.
We are using latest version of DPDK ( dpdk-24.03 ) to configure RSS key, we
understand C3 GCP instance with gvnic supports Toeplitz rss algorithm (
Reference -
https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c
),
but we are hitting below issue.
*Problem Statement - The RSS Hash value returned by the gvnic driver is
different and is not matching the one computed by Toeplitz.*
Using below script to compute rss hash value from Toeplitz.
(https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7)
Consider below data to compute RSS Hash value -
Source IP - 79.124.62.122
Destination IP - 192.168.7.28
Source Port - 49442
Destination Port - 55327
RSS Key - {0x94e3e97e, 0x4abac401, 0x1e0edbf, 0xe059e1f4, 0xb6e27dff,
0xdf55c916, 0xe9e6e4db, 0x1f9fb82c, 0x1e0edbf, 0xe059e1f4}
*Hash Value returned by Toeplitz - 0x8bbafd0f*
Gvnic dpdk pmd driver which uses Toeplitz RSS hash algorithm too is
expected to compute above RSS Hash value but we see the Hash value stored
in dpdk mbuf to be 0xc6a15941 which is not right.
From the DPDK side we have ensured RSS offloading configuration is done
appropriately, but still we are seeing above mismatch.
We request you to please help us understand why this mismatch is happening
and is this expected behavior of gvnic on C3 instance.
Thanks,
Nagesh
[-- Attachment #2: Type: text/html, Size: 4912 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
2024-05-15 8:20 RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz Nagesh Mallappa
@ 2024-05-15 15:04 ` Stephen Hemminger
2024-05-15 15:49 ` Nagesh Mallappa
2024-05-16 8:56 ` Ferruh Yigit
1 sibling, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2024-05-15 15:04 UTC (permalink / raw)
To: Nagesh Mallappa; +Cc: dev
On Wed, 15 May 2024 13:50:38 +0530
Nagesh Mallappa <mallappanagesh@gmail.com> wrote:
> Hi Team,
>
> We are using a C3 GCP instance having GVNIC with DPDK enabled.
> We are using latest version of DPDK ( dpdk-24.03 ) to configure RSS key, we
> understand C3 GCP instance with gvnic supports Toeplitz rss algorithm (
> Reference -
> https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c
> ),
> but we are hitting below issue.
>
> *Problem Statement - The RSS Hash value returned by the gvnic driver is
> different and is not matching the one computed by Toeplitz.*
>
> Using below script to compute rss hash value from Toeplitz.
> (https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7)
>
> Consider below data to compute RSS Hash value -
>
> Source IP - 79.124.62.122
> Destination IP - 192.168.7.28
> Source Port - 49442
> Destination Port - 55327
> RSS Key - {0x94e3e97e, 0x4abac401, 0x1e0edbf, 0xe059e1f4, 0xb6e27dff,
> 0xdf55c916, 0xe9e6e4db, 0x1f9fb82c, 0x1e0edbf, 0xe059e1f4}
>
> *Hash Value returned by Toeplitz - 0x8bbafd0f*
>
> Gvnic dpdk pmd driver which uses Toeplitz RSS hash algorithm too is
> expected to compute above RSS Hash value but we see the Hash value stored
> in dpdk mbuf to be 0xc6a15941 which is not right.
> From the DPDK side we have ensured RSS offloading configuration is done
> appropriately, but still we are seeing above mismatch.
>
> We request you to please help us understand why this mismatch is happening
> and is this expected behavior of gvnic on C3 instance.
Could you see if it is a driver byte order issue by byteswapping the key?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
2024-05-15 15:04 ` Stephen Hemminger
@ 2024-05-15 15:49 ` Nagesh Mallappa
2024-05-15 22:57 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Nagesh Mallappa @ 2024-05-15 15:49 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: dev
[-- Attachment #1: Type: text/plain, Size: 1949 bytes --]
Hi Stephen,
Thanks for your response,
I have verified that too, but that is not the case.
Thanks,
Nagesh
On Wed, May 15, 2024 at 8:34 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:
> On Wed, 15 May 2024 13:50:38 +0530
> Nagesh Mallappa <mallappanagesh@gmail.com> wrote:
>
> > Hi Team,
> >
> > We are using a C3 GCP instance having GVNIC with DPDK enabled.
> > We are using latest version of DPDK ( dpdk-24.03 ) to configure RSS key,
> we
> > understand C3 GCP instance with gvnic supports Toeplitz rss algorithm (
> > Reference -
> >
> https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c
> > ),
> > but we are hitting below issue.
> >
> > *Problem Statement - The RSS Hash value returned by the gvnic driver is
> > different and is not matching the one computed by Toeplitz.*
> >
> > Using below script to compute rss hash value from Toeplitz.
> > (https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7)
> >
> > Consider below data to compute RSS Hash value -
> >
> > Source IP - 79.124.62.122
> > Destination IP - 192.168.7.28
> > Source Port - 49442
> > Destination Port - 55327
> > RSS Key - {0x94e3e97e, 0x4abac401, 0x1e0edbf, 0xe059e1f4, 0xb6e27dff,
> > 0xdf55c916, 0xe9e6e4db, 0x1f9fb82c, 0x1e0edbf, 0xe059e1f4}
> >
> > *Hash Value returned by Toeplitz - 0x8bbafd0f*
> >
> > Gvnic dpdk pmd driver which uses Toeplitz RSS hash algorithm too is
> > expected to compute above RSS Hash value but we see the Hash value stored
> > in dpdk mbuf to be 0xc6a15941 which is not right.
> > From the DPDK side we have ensured RSS offloading configuration is done
> > appropriately, but still we are seeing above mismatch.
> >
> > We request you to please help us understand why this mismatch is
> happening
> > and is this expected behavior of gvnic on C3 instance.
>
> Could you see if it is a driver byte order issue by byteswapping the key?
>
[-- Attachment #2: Type: text/html, Size: 2779 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
2024-05-15 15:49 ` Nagesh Mallappa
@ 2024-05-15 22:57 ` Stephen Hemminger
2024-05-16 8:18 ` Nagesh Mallappa
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2024-05-15 22:57 UTC (permalink / raw)
To: Nagesh Mallappa; +Cc: dev
On Wed, 15 May 2024 21:19:15 +0530
Nagesh Mallappa <mallappanagesh@gmail.com> wrote:
> Hi Stephen,
>
> Thanks for your response,
> I have verified that too, but that is not the case.
Does it work the same with Linux native kernel driver.
If so, then comparing the code there might give some insight.
PS: I don't use or any connection with Google, just trying to
give insight based on other previous drivers with similar bugs.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
2024-05-15 22:57 ` Stephen Hemminger
@ 2024-05-16 8:18 ` Nagesh Mallappa
0 siblings, 0 replies; 6+ messages in thread
From: Nagesh Mallappa @ 2024-05-16 8:18 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: dev
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
Hi Stephen,
Yes we have tried on Freebsd driver, we are hitting RCC hash issues here
too.
The Issue seems to be with the backend Gvnic on C3 GCP Instance.
Trying to get help from the DPDK community if there is any workaround or
fix for the RSS Issue on GVNIC DPDK PMD for C3 GCP Instance.
Thanks,
Nagesh
On Thu, May 16, 2024 at 4:27 AM Stephen Hemminger <
stephen@networkplumber.org> wrote:
> On Wed, 15 May 2024 21:19:15 +0530
> Nagesh Mallappa <mallappanagesh@gmail.com> wrote:
>
> > Hi Stephen,
> >
> > Thanks for your response,
> > I have verified that too, but that is not the case.
>
> Does it work the same with Linux native kernel driver.
> If so, then comparing the code there might give some insight.
>
> PS: I don't use or any connection with Google, just trying to
> give insight based on other previous drivers with similar bugs.
>
[-- Attachment #2: Type: text/html, Size: 1341 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz
2024-05-15 8:20 RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz Nagesh Mallappa
2024-05-15 15:04 ` Stephen Hemminger
@ 2024-05-16 8:56 ` Ferruh Yigit
1 sibling, 0 replies; 6+ messages in thread
From: Ferruh Yigit @ 2024-05-16 8:56 UTC (permalink / raw)
To: Nagesh Mallappa, Jeroen de Borst, Rushil Gupta, Joshua Washington; +Cc: dev
On 5/15/2024 9:20 AM, Nagesh Mallappa wrote:
> Hi Team,
>
> We are using a C3 GCP instance having GVNIC with DPDK enabled.
> We are using latest version of DPDK ( dpdk-24.03 ) to configure RSS key,
> we understand C3 GCP instance with gvnic supports Toeplitz rss algorithm
> ( Reference
> - https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c <https://github.com/google/compute-virtual-ethernet-dpdk/blob/main/gve_ethdev.c> ), but we are hitting below issue.
>
> *Problem Statement - The RSS Hash value returned by the gvnic driver is
> different and is not matching the one computed by Toeplitz.*
>
> Using below script to compute rss hash value from Toeplitz.
> (https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7
> <https://gist.github.com/joongh/16867705b03b49e393cbf91da3cb42a7>)
>
> Consider below data to compute RSS Hash value -
>
> Source IP - 79.124.62.122
> Destination IP - 192.168.7.28
> Source Port - 49442
> Destination Port - 55327
> RSS Key - {0x94e3e97e, 0x4abac401, 0x1e0edbf, 0xe059e1f4, 0xb6e27dff,
> 0xdf55c916, 0xe9e6e4db, 0x1f9fb82c, 0x1e0edbf, 0xe059e1f4}
>
> *Hash Value returned by Toeplitz - 0x8bbafd0f*
>
> Gvnic dpdk pmd driver which uses Toeplitz RSS hash algorithm too is
> expected to compute above RSS Hash value but we see the Hash value
> stored in dpdk mbuf to be 0xc6a15941 which is not right.
> From the DPDK side we have ensured RSS offloading configuration is done
> appropriately, but still we are seeing above mismatch.
>
> We request you to please help us understand why this mismatch is
> happening and is this expected behavior of gvnic on C3 instance.
>
>
+ driver maintainers
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-05-16 13:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 8:20 RSS Hash value returned by the gvnic pmd dpdk driver not matching Toeplitz Nagesh Mallappa
2024-05-15 15:04 ` Stephen Hemminger
2024-05-15 15:49 ` Nagesh Mallappa
2024-05-15 22:57 ` Stephen Hemminger
2024-05-16 8:18 ` Nagesh Mallappa
2024-05-16 8:56 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).