Skip to content

Revert "ethernet: Remove vf rate limit check for drivers"

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168599
Upstream-status: RHEL-Only
    
This reverts commit 778c3af371b3bb27a1c557284293ede622f17cf1.
    
Commit 778c3af371b3 ("ethernet: Remove vf rate limit check for drivers")
was backported for RHEL9.2 but it has a dependency on upstream
commit a14857c27a50 ("rtnetlink: verify rate parameters for calls
to ndo_set_vf_rate") which has not been backported to RHEL9 at this time.
    
Without this revert, it is possible for a program to pass invalid parameters to the kernel/driver using IFLA_VF_RATE.  The 'ip' command is safe because it makes sure that min_tx_rate <= max_tx_rate before calling into the kernel, but other programs could potentially be a problem.

Signed-off-by: Ken Cox <jkc@redhat.com>

Merge request reports