linux/drivers/infiniband/ulp
Dragos Tatulea ca48174a76 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:14:27 +01:00
..
ipoib IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-31 13:14:27 +01:00
iser scsi: iscsi: Fix session removal on shutdown 2022-08-17 14:23:45 +02:00
isert IB/isert: Align target max I/O size to initiator size 2021-06-24 09:07:53 -03:00
opa_vnic RDMA: Convert comma to semicolon 2021-01-07 13:53:41 -04:00
rtrs RDMA/rtrs-srv: Pass the correct number of entries for dma mapped SGL 2022-09-15 11:30:03 +02:00
srp RDMA/srp: Fix error return code in srp_parse_options() 2022-12-31 13:14:26 +01:00
srpt RDMA/srpt: Fix a use-after-free 2022-08-17 14:23:58 +02:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00