]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Create/destroy PCIe Congestion Event object
authorDragos Tatulea <dtatulea@nvidia.com>
Tue, 15 Jul 2025 14:30:20 +0000 (17:30 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 00:56:32 +0000 (17:56 -0700)
commitab2b0d4d639435f382583b107997a4ce805a665b
treeddcdf4f680b219908e80692bbe8bb53daed0fbd2
parent727258025b933c61e103318ec42e765a53d9b18d
net/mlx5e: Create/destroy PCIe Congestion Event object

Add initial infrastructure to create and destroy the PCIe Congestion
Event object if the object is supported.

The verb for the object creation function is "set" instead of
"create" because the function will accommodate the modify operation
as well in a subsequent patch.

The next patches will hook it up to the event handler and will add
actual functionality.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1752589821-145787-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h