Page MenuHomeFreeBSD

mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing
AcceptedPublic

Authored by gallatin on Tue, Oct 14, 7:46 PM.
Tags
None
Referenced Files
F132956324: D53091.id.diff
Tue, Oct 21, 12:43 PM
Unknown Object (File)
Sun, Oct 19, 9:41 AM
Unknown Object (File)
Sun, Oct 19, 9:01 AM
Unknown Object (File)
Sun, Oct 19, 8:49 AM
Unknown Object (File)
Sun, Oct 19, 8:49 AM
Unknown Object (File)
Sat, Oct 18, 9:32 AM
Unknown Object (File)
Thu, Oct 16, 8:21 PM
Unknown Object (File)
Thu, Oct 16, 3:38 PM
Subscribers

Details

Reviewers
kib
vangyzen

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67775
Build 64658: arc lint + arc unit

Event Timeline

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?

In D53091#1213605, @kib wrote:

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?

Sorry, I wish I was better at reviews of patch series. This is one of many patches, starting with https://reviews.freebsd.org/D53089 and ending with https://reviews.freebsd.org/D53104
The goal is to achieve consistent hashing for TCP ingress/egress by exposing the hashing parts of RSS to drivers, so that all NICs use the same hash key and algo.

In D53091#1213605, @kib wrote:

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?

Sorry, I wish I was better at reviews of patch series. This is one of many patches, starting with https://reviews.freebsd.org/D53089 and ending with https://reviews.freebsd.org/D53104
The goal is to achieve consistent hashing for TCP ingress/egress by exposing the hashing parts of RSS to drivers, so that all NICs use the same hash key and algo.

I do not know how to list of the patches in your series. You could add 'related objects' to your review, then it will be visible to everybody.

That said, I have no objections against this change after D53089 goes in.

We (Nvidia) might request that the commit of this revision might be postponed until D53089 is committed, so that Nvidia' verification could do the scrutiny before driver changes.
Or you might provide us the minimal set of reviews we could apply and run verification on, to ensure that your commit is fine for mlx5.

In D53091#1214239, @kib wrote:
In D53091#1213605, @kib wrote:

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?

Sorry, I wish I was better at reviews of patch series. This is one of many patches, starting with https://reviews.freebsd.org/D53089 and ending with https://reviews.freebsd.org/D53104
The goal is to achieve consistent hashing for TCP ingress/egress by exposing the hashing parts of RSS to drivers, so that all NICs use the same hash key and algo.

I do not know how to list of the patches in your series. You could add 'related objects' to your review, then it will be visible to everybody.

That said, I have no objections against this change after D53089 goes in.

We (Nvidia) might request that the commit of this revision might be postponed until D53089 is committed, so that Nvidia' verification could do the scrutiny before driver changes.
Or you might provide us the minimal set of reviews we could apply and run verification on, to ensure that your commit is fine for mlx5.

I've already tested on NF servers. But if you'd like to test, the minimal set of reviews is:
https://reviews.freebsd.org/D53089
https://reviews.freebsd.org/D53090
https://reviews.freebsd.org/D53104

And https://reviews.freebsd.org/D53105 to verify hashing is working as expected.

This assumes no NICs other than loopback and mce on your test machine.

This revision is now accepted and ready to land.Mon, Oct 20, 2:35 AM