Skip to content

net: ethtool: fix rxfh_max_context_id

[email protected] netdev 2 versions – Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

* Removed unnecessary limit==0 check, since this can never happen
* Renamed rxfh_max_context_id to rxfh_max_num_contexts
* Incremented bnxt's max to keep user-facing behaviour the same
* Added patch #2 to validate the max is sane

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: ethtool: fix off-by-one error in max RSS context IDsdrivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c include/linux/ethtool.h net/ethtool/ioctl.c+9 -80 repliesApplied
2/2net: ethtool: check rxfh_max_num_contexts != 1 at register timenet/ethtool/common.c+2 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net 0/2] net: ethtool: fix rxfh_max_context_id

From: Edward Cree <[email protected]>

Changes in v2:
* Removed unnecessary limit==0 check, since this can never happen
* Renamed rxfh_max_context_id to rxfh_max_num_contexts
* Incremented bnxt's max to keep user-facing behaviour the same
* Added patch #2 to validate the max is sane

Patch #2 doesn't have a fixes tag because it's strictly supererogatory;
idk if it should go to net-next instead.

Edward Cree (2):
net: ethtool: fix off-by-one error in max RSS context IDs
net: ethtool: check rxfh_max_num_contexts != 1 at register time

 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c |  2 +-
 include/linux/ethtool.h                           | 10 +++++-----
 net/ethtool/common.c                              |  2 ++
 net/ethtool/ioctl.c                               |  5 +++--
 4 files changed, 11 insertions(+), 8 deletions(-)