diff options
| author | Gregory Herrero <gregory.herrero@oracle.com> | 2025-12-12 22:06:43 +0100 |
|---|---|---|
| committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2025-12-17 09:35:53 -0800 |
| commit | 69942834215323cd9131db557091b4dec43f19c5 (patch) | |
| tree | 7906d0b6f86daffec806d3d4b625c8bff5f1386c /include/uapi/linux/android/git@git.tavy.me:linux.git | |
| parent | be43abc5514167cc129a8d8e9727b89b8e1d9719 (diff) | |
i40e: validate ring_len parameter against hardware-specific values
The maximum number of descriptors supported by the hardware is
hardware-dependent and can be retrieved using
i40e_get_max_num_descriptors(). Move this function to a shared header
and use it when checking for valid ring_len parameter rather than using
hardcoded value.
By fixing an over-acceptance issue, behavior change could be seen where
ring_len could now be rejected while configuring rx and tx queues if its
size is larger than the hardware-dependent maximum number of
descriptors.
Fixes: 55d225670def ("i40e: add validation for ring_len param")
Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/uapi/linux/android/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
