diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2022-11-02 23:55:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-16 10:04:00 +0100 |
commit | 27bfc709100088ff537fac5c3ac9e4de337e35b4 (patch) | |
tree | def61cbdb26074b826159a2f26dd1409c2ca9b24 /drivers/net/ethernet/intel/ice/ice_lib.c | |
parent | be0a8565a996092981a12fb9fecbcc77ae86cc7c (diff) |
net/mlx5e: Add missing sanity checks for max TX WQE size
[ Upstream commit f9c955b4fe5c8626d11b8a9b93ccc0ba77358fec ]
The commit cited below started using the firmware capability for the
maximum TX WQE size. This commit adds an important check to verify that
the driver doesn't attempt to exceed this capability, and also restores
another check mistakenly removed in the cited commit (a WQE must not
exceed the page size).
Fixes: c27bd1718c06 ("net/mlx5e: Read max WQEBBs on the SQ from firmware")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions