1
linux/drivers/infiniband/sw/siw
Showrya M N 4e1e3dd88a RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES
While running ISER over SIW, the initiator machine encounters a warning
from skb_splice_from_iter() indicating that a slab page is being used in
send_page. To address this, it is better to add a sendpage_ok() check
within the driver itself, and if it returns 0, then MSG_SPLICE_PAGES flag
should be disabled before entering the network stack.

A similar issue has been discussed for NVMe in this thread:
https://lore.kernel.org/all/20240530142417.146696-1-ofir.gal@volumez.com/

  WARNING: CPU: 0 PID: 5342 at net/core/skbuff.c:7140 skb_splice_from_iter+0x173/0x320
  Call Trace:
   tcp_sendmsg_locked+0x368/0xe40
   siw_tx_hdt+0x695/0xa40 [siw]
   siw_qp_sq_process+0x102/0xb00 [siw]
   siw_sq_resume+0x39/0x110 [siw]
   siw_run_sq+0x74/0x160 [siw]
   kthread+0xd2/0x100
   ret_from_fork+0x34/0x40
   ret_from_fork_asm+0x1a/0x30

Link: https://patch.msgid.link/r/20241007125835.89942-1-showrya@chelsio.com
Signed-off-by: Showrya M N <showrya@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2024-10-11 13:55:53 -03:00
..
iwarp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
Kconfig
Makefile
siw_cm.c RDMA/siw: Introduce siw_destroy_cep_sock 2023-11-15 15:58:14 +02:00
siw_cm.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
siw_cq.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
siw_main.c RDMA/siw: Remove NETDEV_GOING_DOWN event handler 2024-07-29 11:43:47 +03:00
siw_mem.c RDMA/siw: Introduce SIW_STAG_MAX_INDEX 2023-11-15 15:58:13 +02:00
siw_mem.h RDMA/siw: Use ib_umem_get() to pin user pages 2023-11-13 10:14:00 +02:00
siw_qp_rx.c RDMA/siw: Factor out siw_rx_data helper 2023-11-15 15:58:13 +02:00
siw_qp_tx.c RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES 2024-10-11 13:55:53 -03:00
siw_qp.c RDMA/siw: Fix typo 2023-11-15 15:58:14 +02:00
siw_verbs.c RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
siw_verbs.h RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
siw.h RDMA/siw: Remove NETDEV_GOING_DOWN event handler 2024-07-29 11:43:47 +03:00