diff options
| author | 2022-05-11 13:39:31 +0200 | |
|---|---|---|
| committer | 2022-05-12 13:03:08 +0200 | |
| commit | a14857c27a505bc7ebcef6311424274b2f42f846 (patch) | |
| tree | bb80fe7970e1fece0b6e97f978caebbc3e9a3d15 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | net: ethernet: SP7021: Fix spelling mistake "Interrput" -> "Interrupt" (diff) | |
| download | wireguard-linux-a14857c27a505bc7ebcef6311424274b2f42f846.tar.xz wireguard-linux-a14857c27a505bc7ebcef6311424274b2f42f846.zip | |
rtnetlink: verify rate parameters for calls to ndo_set_vf_rate
When calling ndo_set_vf_rate() the max_tx_rate parameter may be zero,
in which case the setting is cleared, or it must be greater or equal to
min_tx_rate.
Enforce this requirement on all calls to ndo_set_vf_rate via a wrapper
which also only calls ndo_set_vf_rate() if defined by the driver.
Based on work by Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Bin Chen <bin.chen@corigine.com>
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
