diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2022-09-27 23:36:00 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-29 05:36:35 +0300 |
commit | 44f4fd03b51705ce8af54c103c9af55926c5d950 (patch) | |
tree | be6fb621478946e8259986072d0ae2c0658cf6ca /drivers/cpufreq/powernow-k6.c | |
parent | 7e49abb1e393c3fe741bd47462f5c1f5d714ec24 (diff) | |
download | linux-44f4fd03b51705ce8af54c103c9af55926c5d950.tar.xz |
net/mlx5e: Validate striding RQ before enabling XDP
Currently, the driver can silently fall back to legacy RQ after enabling
XDP, even if striding RQ was active before. It happens when PAGE_SIZE is
bigger than the maximum supported stride size. This commit changes this
behavior to more straightforward: if an operation (enabling XDP) doesn't
support the current parameters (striding RQ mode), it fails.
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/cpufreq/powernow-k6.c')
0 files changed, 0 insertions, 0 deletions