Page MenuHomeFreeBSD

ena: use newly exposed RSS hash key API rather than ad-hoc hashing
Needs ReviewPublic

Authored by gallatin on Tue, Oct 14, 7:47 PM.
Tags
None
Referenced Files
F132478756: D53100.id164286.diff
Fri, Oct 17, 6:35 AM
F132427125: D53100.diff
Thu, Oct 16, 8:32 PM
F132378448: D53100.diff
Thu, Oct 16, 9:22 AM
Unknown Object (File)
Thu, Oct 16, 4:12 AM
Unknown Object (File)
Thu, Oct 16, 4:12 AM
Unknown Object (File)
Wed, Oct 15, 5:11 PM
Subscribers

Diff Detail

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

Event Timeline

Hi,

Thank you for submitting this patch.
Can you please provide a commit message that explains this change.
For example questions that immediately arise:

  1. What "newly exposed RSS hash key API" you are talking about (link to the commits that added this API)?
  2. Why it is ok to remove the #ifdef RSS?
  3. Why do you also remove the #ifdef RSS in ena_datapath.c?
  4. How did you test the change?

Thanks!

Hi,

Thank you for submitting this patch.
Can you please provide a commit message that explains this change.
For example questions that immediately arise:

  1. What "newly exposed RSS hash key API" you are talking about (link to the commits that added this API)?
  2. Why it is ok to remove the #ifdef RSS?
  3. Why do you also remove the #ifdef RSS in ena_datapath.c?
  4. How did you test the change?

Thanks!

Sorry, I wish I was better at reviews of patch series. This is not my favorite review tool.

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.

Testing was done with netflix traffic on mlx5, ixl and ix using https://reviews.freebsd.org/D53105

Looking at ena_datapath, it looks like I also need to unifdef the check for toeplitz being enabled.

Update patch to unifdef check for adapter using toeplitz hashing