linux/drivers/infiniband/ulp
Dragos Tatulea ee0e9b2c4b IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
[ Upstream commit dbc94a0fb8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2022-12-31 13:32:38 +01:00
..
ipoib IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-31 13:32:38 +01:00
iser IB/iser: Fix login with authentication 2022-08-16 15:56:33 +03:00
isert v5.19 pull request 2022-05-26 21:08:40 -07:00
opa_vnic IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
rtrs treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
srp RDMA/srp: Fix error return code in srp_parse_options() 2022-12-31 13:32:36 +01:00
srpt RDMA/srpt: Use flex array destination for memcpy() 2022-09-20 15:05:29 +03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00