Dragos Tatulea dbc94a0fb8 IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
There are 2 ways to create IPoIB PKEY child interfaces:
1) Writing a PKEY to /sys/class/net/<ib parent interface>/create_child.
2) Using netlink with iproute.

While with sysfs the child interface has the same number of tx and
rx queues as the parent, with netlink there will always be 1 tx
and 1 rx queue for the child interface. That's because the
get_num_tx/rx_queues() netlink ops are missing and the default value
of 1 is taken for the number of queues (in rtnl_create_link()).

This change adds the get_num_tx/rx_queues() ops which allows for
interfaces with multiple queues to be created over netlink. This
constant only represents the max number of tx and rx queues on that
net device.

Fixes: 9baa0b036410 ("IB/ipoib: Add rtnl_link_ops support")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://lore.kernel.org/r/f4a42c8aa43c02d5ae5559a60c3e5e0f18c82531.1670485816.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-12-11 11:04:19 +02:00
..
2022-10-12 10:23:24 -07:00
2022-11-25 17:50:57 -08:00
2022-11-04 16:03:43 -07:00
2022-12-02 15:35:21 -08:00
2022-11-11 09:03:19 -08:00
2022-09-21 20:33:49 +02:00
2022-12-04 12:18:37 -08:00
2022-10-12 10:23:24 -07:00
2022-10-09 14:05:15 -07:00
2022-11-18 13:59:45 -08:00
2022-12-09 15:52:17 -04:00
2022-10-14 18:41:41 -07:00
2022-12-02 16:27:15 -08:00
2022-10-14 12:38:03 -07:00
2022-11-16 10:36:13 -08:00
2022-10-10 09:10:28 -07:00
2022-10-07 11:32:10 -07:00
2022-11-25 13:54:48 -08:00
2022-11-25 17:50:57 -08:00
2022-11-25 12:32:42 -08:00
2022-11-23 11:19:06 -08:00
2022-11-18 12:02:38 -08:00
2022-11-18 10:59:52 -08:00
2022-10-22 03:29:32 +00:00
2022-10-10 14:02:53 -07:00
2022-10-10 14:02:53 -07:00
2022-11-01 12:21:53 -07:00
2022-11-16 10:49:06 -08:00