]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Use common mlx5_same_hw_devs function
authorMark Bloch <mbloch@nvidia.com>
Thu, 23 Oct 2025 09:16:56 +0000 (12:16 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Oct 2025 10:11:27 +0000 (11:11 +0100)
commit211de28b1caf51581ba5e0978e83213db4f488c6
treee427fd7663a2d8f44c0c5d487e4674f5455fa2a1
parent0bc4059cc55d18b3e54fb6d0ed9c394f149217d8
net/mlx5: Use common mlx5_same_hw_devs function

Refactor duplicate hardware device comparison code to use the common
mlx5_same_hw_devs() function instead of reimplementing system GUID
comparison logic in multiple places.

This cleanup eliminates code duplication in:
- Bridge representor device comparison.
- TC hardware device comparison.

Using the centralized function improves maintainability and ensures
consistent behavior across the driver.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1761211020-925651-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c