diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-07-23 14:02:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-23 22:39:43 +0200 |
commit | 658688ce6c936254c34ea1f31549ec62439574aa (patch) | |
tree | ed3156da79609e9054bc52ae4acec6e94b8f65c4 /include/net | |
parent | net: jme: Use dev_get_drvdata (diff) | |
download | linux-658688ce6c936254c34ea1f31549ec62439574aa.tar.xz linux-658688ce6c936254c34ea1f31549ec62439574aa.zip |
net/mlx5e: xsk: dynamically allocate mlx5e_channel_param
The structure is too large to put on the stack, resulting in a
warning on 32-bit ARM:
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c:59:5: error: stack frame size of 1344 bytes in function
'mlx5e_open_xsk' [-Werror,-Wframe-larger-than=]
Use kvzalloc() instead.
Fixes: a038e9794541 ("net/mlx5e: Add XSK zero-copy support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions