]> git.itanic.dy.fi Git - linux-stable/commit
mlxsw: pci: Allocate skbs using GFP_KERNEL during initialization
authorIdo Schimmel <idosch@nvidia.com>
Wed, 11 Oct 2023 14:39:12 +0000 (16:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Oct 2023 00:08:03 +0000 (17:08 -0700)
commit958a140d7a0afcac3c0bb0d3b262a8608f7bba16
tree51f04c5fb4756d14c1c71131e52cd6968b05e7b3
parent5ee0a3bd150918512f28c55073b0d782f674320c
mlxsw: pci: Allocate skbs using GFP_KERNEL during initialization

The driver allocates skbs during initialization and during Rx
processing. Take advantage of the fact that the former happens in
process context and allocate the skbs using GFP_KERNEL to decrease the
probability of allocation failure.

Tested with CONFIG_DEBUG_ATOMIC_SLEEP=y.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/dfa6ed0926e045fe7c14f0894cc0c37fee81bf9d.1697034729.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/pci.c