net/mlx5: fix VF MAC address set over BlueField
authorRaslan Darawsheh <rasland@mellanox.com>
Wed, 22 Jul 2020 09:07:55 +0000 (12:07 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commit753dd70283c772ddcaf20c6f0ccb0ce5de5a5228
tree95a910ebeb6ecc2cd15ed3ee1726ba08a83f02ef
parent6f52bd338374e4bd54ff1f872928e53ebdf1108d
net/mlx5: fix VF MAC address set over BlueField

When trying to set MAC address of an ethernet device and if it was
a representor, PMD sets the MAC over the corresponding VF instead.

For the case of HPF (Host PF representor on BlueField), PMD shouldn't
attempt to set it, since it doesn't have any corresponding VF and fails.

This will fix the issue by setting the MAC on the dev directly.

Fixes: 0d1d73170820 ("net/mlx5: set VF MAC address from host")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_mac.c