mbox series

[v2,0/2] Support ethtool ntuple rule count change

Message ID 1627064206-16032-1-git-send-email-sgoutham@marvell.com (mailing list archive)
Headers show
Series Support ethtool ntuple rule count change | expand

Message

Sunil Kovvuri Goutham July 23, 2021, 6:16 p.m. UTC
Some NICs share resources like packet filters across
multiple interfaces they support. From HW point of view
it is possible to use all filters for a single interface.
This 2 patch series adds support to modify ntuple rule
count for OcteonTx2 netdev.

Changes from v1:
   * No changes in code.
   * Previous discussion didn't conclude, submiting patches again to revive it.
   * Jakub suggested if devlink-resource can be used for this.
   * But since ntuple rule insert and delete are part of ethtool,
     I thought having this config also in ethtool makes sense ie
     all ntuple related stuff within one tool.
   * Also number of MCAM entries can be changed at runtime
     without a driver reload.

Sunil Goutham (2):
  net: ethtool: Support setting ntuple rule count
  octeontx2-pf: Support setting ntuple rule count

 .../ethernet/marvell/octeontx2/nic/otx2_common.h   |  1 +
 .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c  |  3 +++
 .../ethernet/marvell/octeontx2/nic/otx2_flows.c    | 27 ++++++++++++++++++++--
 include/uapi/linux/ethtool.h                       |  1 +
 net/ethtool/ioctl.c                                |  1 +
 5 files changed, 31 insertions(+), 2 deletions(-)