path: root/drivers/net/mlx5/mlx5.h
diff options
authorViacheslav Ovsiienko <>2019-09-25 07:53:34 +0000
committerFerruh Yigit <>2019-10-08 12:14:29 +0200
commitbee57a0a3565181c0467f3d2cbde8bf6af664301 (patch)
tree35c9b8ee5310fb0d4b75ce086f7b95220ee5a3a0 /drivers/net/mlx5/mlx5.h
parentf7e95215ac7c7bcd41cd263f9da2383f92f9bcd7 (diff)
net/mlx5: update switch port id in bonding configuration
With bonding configuration multiple PFs may represent the single switching device with multiple ports as representors. To distinguish representors belonging to different PFs we should generated unique port ID. It is proposed to use the PF index in bonding configuration to generate this unique port IDs. Signed-off-by: Viacheslav Ovsiienko <> Acked-by: Matan Azrad <>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 4ac7240..164df11 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -623,6 +623,7 @@ struct mlx5_priv {
uint32_t vport_meta_tag; /* Used for vport index match ove VF LAG. */
uint32_t vport_meta_mask; /* Used for vport index field match mask. */
int32_t representor_id; /* Port representor identifier. */
+ int32_t pf_bond; /* >=0 means PF index in bonding configuration. */
unsigned int if_index; /* Associated kernel network device index. */
/* RX/TX queues. */
unsigned int rxqs_n; /* RX queues array size. */