linux/drivers/infiniband/ulp/ipoib
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: 9baa0b0364 ("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
..
ipoib_cm.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
ipoib_ethtool.c IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
ipoib_fs.c RDMA/ipoib: Convert to use DEFINE_SEQ_ATTRIBUTE macro 2020-09-16 13:46:18 -03:00
ipoib_ib.c v5.20 pull request 2022-08-04 19:54:32 -07:00
ipoib_main.c RDMA/cma: Multiple path records support with netlink channel 2022-09-22 12:35:21 +03:00
ipoib_multicast.c RDMA/ipoib: Remove racy Subnet Manager sendonly join checks 2021-02-16 14:42:58 -04:00
ipoib_netlink.c IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-11 11:04:19 +02:00
ipoib_verbs.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
ipoib_vlan.c RDMA/ipoib: Delete useless module.h include 2022-01-28 13:03:13 -04:00
ipoib.h RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile