aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2019-08-22 05:05:56 +0000
committerDavid S. Miller <davem@davemloft.net>2019-08-22 00:25:12 -0700
commit29ddad43166db232955e686758e6fc23d97e3a6a (patch)
treef888e9db03ff6bccdaf4c0706badf1719f14d7c5 /drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h
parentnet/mlx5: Add HV VHCA infrastructure (diff)
downloadlinux-dev-29ddad43166db232955e686758e6fc23d97e3a6a.tar.xz
linux-dev-29ddad43166db232955e686758e6fc23d97e3a6a.zip
net/mlx5: Add HV VHCA control agent
Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy, the invalidate callback of the control agent is being called in order to update the PF driver about this change. The control agent is an integral part of HV VHCA and will be created and destroy as part of the HV VHCA init/cleanup flow. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h b/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h
index cdf13039489c..984e7ad7cde4 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h
@@ -12,6 +12,7 @@ struct mlx5_hv_vhca;
struct mlx5_hv_vhca_control_block;
enum mlx5_hv_vhca_agent_type {
+ MLX5_HV_VHCA_AGENT_CONTROL = 0,
MLX5_HV_VHCA_AGENT_MAX = 32,
};