21/07/2021 10:31, Viacheslav Ovsiienko: > The ROCE LAG bond device requires neither E-Switch nor SR-IOV > configurations. It means the ROCE LAG bond device might be > presented as a single port Infiniband device. > > The mlx5 PMD wrongly recognized standalone ROCE LAG bond device > as E-Switch configuration, this triggered the calls of E-Switch > ports related API and the latter failed (over the new OFED kernel > driver, starting since 5.4.1), causing the overall device probe > failure. > > If there is a single port Infiniband bond device found the > E-Switch related flags must be cleared indicating standalone > configuration. > > Also, it is not true anymore the bond device can exist > over E-Switch configurations only (as it was claimed for VF LAG > bond devices). The related checks are not relevant anymore > and removed. > > Fixes: 790164ce1d2d ("net/mlx5: check kernel support for VF LAG bonding") > Cc: sta...@dpdk.org > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@nvidia.com> > Acked-by: Matan Azrad <ma...@nvidia.com>
Applied, thanks