Re: [PATCH v2 1/2] net: ethtool: Support setting ntuple rule count
From: Saeed Mahameed <saeed@kernel.org>
Date: 2021-07-26 22:29:28
On Sat, 2021-07-24 at 19:23 +0200, Andrew Lunn wrote:
On Fri, Jul 23, 2021 at 11:46:45PM +0530, Sunil Goutham wrote:quoted
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. Currently ethtool doesn't support modifying filter count so that user can allocate more filters to a interface and less to others. This patch adds ETHTOOL_SRXCLSRLCNT ioctl command for modifying filter count. example command: ./ethtool -U eth0 rule-count 256How can use see what the current usage is? How many in total you have available? What the current split is between the interfaces?
There is no point of adding this ethtool interface if the orchestration tool already knows the "rule-count" in advance, it's just redundant to have a user managed limiting device in ethtool.
You say: * Jakub suggested if devlink-resource can be used for this. devlink-resource provides you a standardised mechanism to answer the questions i just asked. So i would have to agree with Jakub.
+1, devlink is your address when a single device is shared across multiple interfaces.
Andrew