net/mlx5: use bond index for netdev operations
authorXueming Li <xuemingl@nvidia.com>
Tue, 15 Sep 2020 03:05:53 +0000 (03:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commitc21e5facf7d20aceedb5bd4a3f470b85c66701f4
tree3611b9f1675e0143a1edf22a2f7c8e98435e3a5c
parent35e75f78162f38e118b288b76c415df988f537f3
net/mlx5: use bond index for netdev operations

In case of bonding, device ifindex was detected as the PF ifindex, so
any operation using ifindex applied to PF instead of the bond device.
These operations includes MTU get/set, up/down and mac address
manipulation, etc.

This patch detects bond interface ifindex and name for PF that join a
bond interface, uses it by default 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/linux/mlx5_ethdev_os.c
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c