diff options
| author | Mark Bloch <mbloch@nvidia.com> | 2026-05-03 23:27:21 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-06 19:03:37 -0700 |
| commit | 386ef557f6df1955631d2b0d79c5984e1b1ce145 (patch) | |
| tree | 81162b8cebeb38c44b1e85131bb1ac189670950b /include/linux/platform_data | |
| parent | b501400fa66d9b8045f282ae8de80ceb6e02fe85 (diff) | |
net/mlx5: E-Switch, let esw work callers choose GFP flags
mlx5_esw_add_work() always allocates the queued work item with
GFP_ATOMIC. That is required for the E-Switch functions-change notifier,
but not every caller of this helper will run from atomic context.
Pass an allocation flag to mlx5_esw_add_work() and keep the notifier
caller using GFP_ATOMIC. This allows sleepable callers to use GFP_KERNEL
instead of unnecessarily relying on atomic reserves.
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260503202726.266415-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
