linux-stable/drivers/infiniband/ulp
Dragos Tatulea bab775fa9c 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>
2022-12-31 13:26:23 +01:00
..
ipoib IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-31 13:26:23 +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 RDMA/opa: Delete useless module.h include 2022-01-28 13:03:14 -04:00
rtrs RDMA/rtrs-srv: Pass the correct number of entries for dma mapped SGL 2022-08-21 12:25:13 +03:00
srp RDMA/srp: Fix error return code in srp_parse_options() 2022-12-31 13:26:22 +01:00
srpt RDMA/ib_srpt: Unify checking rdma_cm_id condition in srpt_cm_req_recv() 2022-08-02 15:10:55 -03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00