diff options
author | Tariq Toukan <tariqt@nvidia.com> | 2023-04-17 15:18:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-19 08:59:26 +0100 |
commit | abd3f84ecab3ab90161c9ba49052ac4ca33a0ed3 (patch) | |
tree | 933b069d59007e9413096f64d9d1ee9c7c839cac /drivers/net/ethernet/mellanox/mlx5/core/en/params.c | |
parent | 7fc06dd2ae7b42fc5093f76878b77c74006b4fd5 (diff) | |
download | linux-stable-abd3f84ecab3ab90161c9ba49052ac4ca33a0ed3.tar.gz linux-stable-abd3f84ecab3ab90161c9ba49052ac4ca33a0ed3.tar.bz2 linux-stable-abd3f84ecab3ab90161c9ba49052ac4ca33a0ed3.zip |
net/mlx5e: XDP, Let XDP checker function get the params as input
Change mlx5e_xdp_allowed() so it gets the params structure with the
xdp_prog applied, rather than creating a local copy based on the current
params in priv.
This reduces the amount of memory on the stack, and acts on the exact
params instance that's about to be applied.
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/params.c')
0 files changed, 0 insertions, 0 deletions