diff options
author | Patrisious Haddad <phaddad@nvidia.com> | 2023-09-21 15:10:28 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-10-02 11:21:03 +0300 |
commit | bf11485f8419f90ffaa3804fd01d8468fcc56e23 (patch) | |
tree | af478c1ee001ef4bfc9cc90f9ba69e10bf12a031 /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | 0d293714ac32650bfb669ceadf7cc2fad8161401 (diff) | |
download | linux-stable-bf11485f8419f90ffaa3804fd01d8468fcc56e23.tar.gz linux-stable-bf11485f8419f90ffaa3804fd01d8468fcc56e23.tar.bz2 linux-stable-bf11485f8419f90ffaa3804fd01d8468fcc56e23.zip |
net/mlx5: Register mlx5e priv to devcom in MPV mode
If the device is in MPV mode, the ethernet driver would now register
to events from IB driver about core devices affiliation or
de-affiliation.
Use the key provided in said event to connect each mlx5e priv
instance to it's master counterpart, this way the ethernet driver
is now aware of who is his master core device and even more, such
as knowing if partner device has IPsec configured or not.
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Link: https://lore.kernel.org/r/279adfa0aa3a1957a339086f2c1739a50b8e4b68.1695296682.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 86f2690c5e01..44785a209466 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -936,6 +936,7 @@ struct mlx5e_priv { struct mlx5e_htb *htb; struct mlx5e_mqprio_rl *mqprio_rl; struct dentry *dfs_root; + struct mlx5_devcom_comp_dev *devcom; }; struct mlx5e_dev { |