net/mlx5: revert setting bonding representor to first PF
authorXueming Li <xuemingl@nvidia.com>
Sun, 28 Mar 2021 13:48:09 +0000 (13:48 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:16:27 +0000 (09:16 +0200)
commit9b03958aebaaa49fb9492b53886653e91667be86
tree65edc2885551202c9d7f60d72034350ac0d662dd
parentcb95feefdd03e0a4104cc707a881e29f0421fa68
net/mlx5: revert setting bonding representor to first PF

With kernel bonding, representors on second PF are being probed by
devargs:
<primary_bdf>,representor=pf1vf<N>
No need to save primary PF port ID and lookup when probing sibling
ports, revert patch [1]

[1]:
commit e6818853c022 ("net/mlx5: set representor to first PF in bonding mode")

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h