net/mlx5: fix setting VF default MAC through representor
authorXueming Li <xuemingl@nvidia.com>
Sun, 28 Mar 2021 13:48:13 +0000 (13:48 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:16:35 +0000 (09:16 +0200)
commit1ce7d26d1afe7e113f96552391d836d834c4b025
treeed630105755fad5811b0c258878130db12a8eea3
parentf5f4c4823740d6f5c0b5c1a2353b2a0857f162e0
net/mlx5: fix setting VF default MAC through representor

With kernel bonding, there was an error when setting VF MAC address
through representor. The Netlink API requires ifindex of owner PF, not
bonding device ifindex.

Uses owner PF ifindex to modify VF default MAC in case of bonding
device.

Fixes: c21e5facf7d2 ("net/mlx5: use bond index for netdev operations")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_mac.c