]> git.ipfire.org Git - thirdparty/linux.git/commit
devlink: Add new "max_mac_per_vf" generic device param
authorMohammad Heib <mheib@redhat.com>
Sat, 25 Oct 2025 13:08:58 +0000 (16:08 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 6 Nov 2025 20:57:31 +0000 (12:57 -0800)
commit9352d40c8bcd2ef29366d2c38b163c0b115039ed
tree71f1b7cb925f67b73e1e4e90af2f223d3909edcb
parent13068e9d57264d0a86b8195817a01155ba33d230
devlink: Add new "max_mac_per_vf" generic device param

Add a new device generic parameter to controls the maximum
number of MAC filters allowed per VF.

For example, to limit a VF to 3 MAC addresses:
 $ devlink dev param set pci/0000:3b:00.0 name max_mac_per_vf \
        value 3 \
        cmode runtime

Signed-off-by: Mohammad Heib <mheib@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Documentation/networking/devlink/devlink-params.rst
include/net/devlink.h
net/devlink/param.c