aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorDragos Tatulea <dtatulea@nvidia.com>2023-04-13 15:48:30 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-05-24 20:44:18 -0700
commit1db1f21caebbb1b6e9b1e7657df613616be3fb49 (patch)
treeb77224fd5270219f538fe5341d16259b61a711c1 /net/core/sock.c
parentnet/mlx5: fw_tracer, Fix event handling (diff)
downloadwireguard-linux-1db1f21caebbb1b6e9b1e7657df613616be3fb49.tar.xz
wireguard-linux-1db1f21caebbb1b6e9b1e7657df613616be3fb49.zip
net/mlx5e: Use query_special_contexts cmd only once per mdev
Don't query the firmware so many times (num rqs * num wqes * wqe frags) because it slows down linearly the interface creation time when the product is larger. Do it only once per mdev and store the result in mlx5e_param. Due to helper function being called from different files, move it to an appropriate location. Rename the function with a proper prefix and add a small cleanup. This fix applies only for legacy rq. Fixes: 1b1e4868836a ("net/mlx5e: Use query_special_contexts for mkeys") Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Or Har-Toov <ohartoov@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions