Skip to content

Commit 19fd08b

Browse files
committed
Merge tag 'for-linus-unmerged' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
Pull rdma updates from Jason Gunthorpe: "Doug and I are at a conference next week so if another PR is sent I expect it to only be bug fixes. Parav noted yesterday that there are some fringe case behavior changes in his work that he would like to fix, and I see that Intel has a number of rc looking patches for HFI1 they posted yesterday. Parav is again the biggest contributor by patch count with his ongoing work to enable container support in the RDMA stack, followed by Leon doing syzkaller inspired cleanups, though most of the actual fixing went to RC. There is one uncomfortable series here fixing the user ABI to actually work as intended in 32 bit mode. There are lots of notes in the commit messages, but the basic summary is we don't think there is an actual 32 bit kernel user of drivers/infiniband for several good reasons. However we are seeing people want to use a 32 bit user space with 64 bit kernel, which didn't completely work today. So in fixing it we required a 32 bit rxe user to upgrade their userspace. rxe users are still already quite rare and we think a 32 bit one is non-existing. - Fix RDMA uapi headers to actually compile in userspace and be more complete - Three shared with netdev pull requests from Mellanox: * 7 patches, mostly to net with 1 IB related one at the back). This series addresses an IRQ performance issue (patch 1), cleanups related to the fix for the IRQ performance problem (patches 2-6), and then extends the fragmented completion queue support that already exists in the net side of the driver to the ib side of the driver (patch 7). * Mostly IB, with 5 patches to net that are needed to support the remaining 10 patches to the IB subsystem. This series extends the current 'representor' framework when the mlx5 driver is in switchdev mode from being a netdev only construct to being a netdev/IB dev construct. The IB dev is limited to raw Eth queue pairs only, but by having an IB dev of this type attached to the representor for a switchdev port, it enables DPDK to work on the switchdev device. * All net related, but needed as infrastructure for the rdma driver - Updates for the hns, i40iw, bnxt_re, cxgb3, cxgb4, hns drivers - SRP performance updates - IB uverbs write path cleanup patch series from Leon - Add RDMA_CM support to ib_srpt. This is disabled by default. Users need to set the port for ib_srpt to listen on in configfs in order for it to be enabled (/sys/kernel/config/target/srpt/discovery_auth/rdma_cm_port) - TSO and Scatter FCS support in mlx4 - Refactor of modify_qp routine to resolve problems seen while working on new code that is forthcoming - More refactoring and updates of RDMA CM for containers support from Parav - mlx5 'fine grained packet pacing', 'ipsec offload' and 'device memory' user API features - Infrastructure updates for the new IOCTL interface, based on increased usage - ABI compatibility bug fixes to fully support 32 bit userspace on 64 bit kernel as was originally intended. See the commit messages for extensive details - Syzkaller bugs and code cleanups motivated by them" * tag 'for-linus-unmerged' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (199 commits) IB/rxe: Fix for oops in rxe_register_device on ppc64le arch IB/mlx5: Device memory mr registration support net/mlx5: Mkey creation command adjustments IB/mlx5: Device memory support in mlx5_ib net/mlx5: Query device memory capabilities IB/uverbs: Add device memory registration ioctl support IB/uverbs: Add alloc/free dm uverbs ioctl support IB/uverbs: Add device memory capabilities reporting IB/uverbs: Expose device memory capabilities to user RDMA/qedr: Fix wmb usage in qedr IB/rxe: Removed GID add/del dummy routines RDMA/qedr: Zero stack memory before copying to user space IB/mlx5: Add ability to hash by IPSEC_SPI when creating a TIR IB/mlx5: Add information for querying IPsec capabilities IB/mlx5: Add IPsec support for egress and ingress {net,IB}/mlx5: Add ipsec helper IB/mlx5: Add modify_flow_action_esp verb IB/mlx5: Add implementation for create and destroy action_xfrm IB/uverbs: Introduce ESP steering match filter IB/uverbs: Add modify ESP flow_action ...
2 parents 28da7be + efc365e commit 19fd08b

175 files changed

Lines changed: 6672 additions & 2915 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.mailmap‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Koushik <raghavendra.koushik@neterion.com>
102102
Krzysztof Kozlowski <krzk@kernel.org> <k.kozlowski@samsung.com>
103103
Krzysztof Kozlowski <krzk@kernel.org> <k.kozlowski.k@gmail.com>
104104
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
105+
Leon Romanovsky <leon@kernel.org> <leon@leon.nu>
106+
Leon Romanovsky <leon@kernel.org> <leonro@mellanox.com>
105107
Leonid I Ananiev <leonid.i.ananiev@intel.com>
106108
Linas Vepstas <linas@austin.ibm.com>
107109
Linus Lüssing <linus.luessing@c0d3.blue> <linus.luessing@web.de>

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7214,6 +7214,7 @@ M: Shiraz Saleem <shiraz.saleem@intel.com>
72147214
L: linux-rdma@vger.kernel.org
72157215
S: Supported
72167216
F: drivers/infiniband/hw/i40iw/
7217+
F: include/uapi/rdma/i40iw-abi.h
72177218

72187219
INTEL SHA MULTIBUFFER DRIVER
72197220
M: Megha Dey <megha.dey@linux.intel.com>

‎drivers/infiniband/Kconfig‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ config INFINIBAND_USER_ACCESS
3535
libibverbs, libibcm and a hardware driver library from
3636
rdma-core <https://github.com/linux-rdma/rdma-core>.
3737

38-
config INFINIBAND_EXP_USER_ACCESS
39-
bool "Enable the full uverbs ioctl interface (EXPERIMENTAL)"
38+
config INFINIBAND_EXP_LEGACY_VERBS_NEW_UAPI
39+
bool "Allow experimental legacy verbs in new ioctl uAPI (EXPERIMENTAL)"
4040
depends on INFINIBAND_USER_ACCESS
4141
---help---
42-
IOCTL based ABI support for Infiniband. This allows userspace
43-
to invoke the experimental IOCTL based ABI.
44-
These commands are parsed via per-device parsing tree and
45-
enables per-device features.
42+
IOCTL based uAPI support for Infiniband is enabled by default for
43+
new verbs only. This allows userspace to invoke the IOCTL based uAPI
44+
for current legacy verbs too.
4645

4746
config INFINIBAND_USER_MEM
4847
bool

‎drivers/infiniband/core/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ ib_ucm-y := ucm.o
3434

3535
ib_uverbs-y := uverbs_main.o uverbs_cmd.o uverbs_marshall.o \
3636
rdma_core.o uverbs_std_types.o uverbs_ioctl.o \
37-
uverbs_ioctl_merge.o
37+
uverbs_ioctl_merge.o uverbs_std_types_cq.o \
38+
uverbs_std_types_flow_action.o uverbs_std_types_dm.o \
39+
uverbs_std_types_mr.o

‎drivers/infiniband/core/addr.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ static void queue_req(struct addr_req *req)
329329
mutex_unlock(&lock);
330330
}
331331

332-
static int ib_nl_fetch_ha(struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
332+
static int ib_nl_fetch_ha(const struct dst_entry *dst,
333+
struct rdma_dev_addr *dev_addr,
333334
const void *daddr, u32 seq, u16 family)
334335
{
335336
if (rdma_nl_chk_listeners(RDMA_NL_GROUP_LS))
@@ -340,7 +341,8 @@ static int ib_nl_fetch_ha(struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
340341
return ib_nl_ip_send_msg(dev_addr, daddr, seq, family);
341342
}
342343

343-
static int dst_fetch_ha(struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
344+
static int dst_fetch_ha(const struct dst_entry *dst,
345+
struct rdma_dev_addr *dev_addr,
344346
const void *daddr)
345347
{
346348
struct neighbour *n;
@@ -364,7 +366,7 @@ static int dst_fetch_ha(struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
364366
return ret;
365367
}
366368

367-
static bool has_gateway(struct dst_entry *dst, sa_family_t family)
369+
static bool has_gateway(const struct dst_entry *dst, sa_family_t family)
368370
{
369371
struct rtable *rt;
370372
struct rt6_info *rt6;
@@ -378,7 +380,7 @@ static bool has_gateway(struct dst_entry *dst, sa_family_t family)
378380
return rt6->rt6i_flags & RTF_GATEWAY;
379381
}
380382

381-
static int fetch_ha(struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
383+
static int fetch_ha(const struct dst_entry *dst, struct rdma_dev_addr *dev_addr,
382384
const struct sockaddr *dst_in, u32 seq)
383385
{
384386
const struct sockaddr_in *dst_in4 =
@@ -482,7 +484,7 @@ static int addr6_resolve(struct sockaddr_in6 *src_in,
482484
}
483485
#endif
484486

485-
static int addr_resolve_neigh(struct dst_entry *dst,
487+
static int addr_resolve_neigh(const struct dst_entry *dst,
486488
const struct sockaddr *dst_in,
487489
struct rdma_dev_addr *addr,
488490
u32 seq)
@@ -736,7 +738,6 @@ int rdma_resolve_ip_route(struct sockaddr *src_addr,
736738

737739
return addr_resolve(src_in, dst_addr, addr, false, 0);
738740
}
739-
EXPORT_SYMBOL(rdma_resolve_ip_route);
740741

741742
void rdma_addr_cancel(struct rdma_dev_addr *addr)
742743
{

0 commit comments

Comments
 (0)