Go to file
Mete Durlu 4f0ce3d768 net/smc: Fix lookup of netdev by using ib_device_get_netdev()
JIRA: https://issues.redhat.com/browse/RHEL-102713

commit de88df01796b309903b70888fbdf2b89607e3a6a
Author: Wenjia Zhang <wenjia@linux.ibm.com>
Date:   Wed Nov 6 09:26:12 2024 +0100

    net/smc: Fix lookup of netdev by using ib_device_get_netdev()

    The SMC-R variant of the SMC protocol used direct call to function
    ib_device_ops.get_netdev() to lookup netdev. As we used mlx5 device
    driver to run SMC-R, it failed to find a device, because in mlx5_ib the
    internal net device management for retrieving net devices was replaced
    by a common interface ib_device_get_netdev() in commit 8d159eb2117b
    ("RDMA/mlx5: Use IB set_netdev and get_netdev functions").

    Since such direct accesses to the internal net device management is not
    recommended at all, update the SMC-R code to use proper API
    ib_device_get_netdev().

    Fixes: 54903572c2 ("net/smc: allow pnetid-less configuration")
    Reported-by: Aswin K <aswin@linux.ibm.com>
    Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
    Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
    Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
    Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
    Reviewed-by: D. Wythe <alibuda@linux.alibaba.com>
    Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com>
    Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
    Link: https://patch.msgid.link/20241106082612.57803-1-wenjia@linux.ibm.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Hidayath Khan <hidayath@linux.ibm.com>
Signed-off-by: Mete Durlu <mdurlu@redhat.com>
2025-07-25 16:40:59 +02:00
Documentation Merge: FOP_ flags: lockd is not sending NLM_GRANTED messages 2025-07-21 18:52:52 -03:00
LICENSES LICENSES: Add the copyleft-next-0.3.1 license 2025-06-18 10:35:27 -03:00
arch Merge: FOP_ flags: lockd is not sending NLM_GRANTED messages 2025-07-21 18:52:52 -03:00
block Merge: FOP_ flags: lockd is not sending NLM_GRANTED messages 2025-07-21 18:52:52 -03:00
certs
crypto crypto: algif_hash - fix double free in hash_accept 2025-07-08 05:09:28 +00:00
drivers Merge: loop: move lo_set_size() out of queue freeze 2025-07-21 18:52:58 -03:00
fs Merge: fsnotify: update to upstream (v6.7) 2025-07-21 18:52:59 -03:00
include Merge: CNB97: skbuff: Optimize SKB coalescing for page pool 2025-07-21 18:53:01 -03:00
init
io_uring fs: claw back a few FMODE_* bits 2025-07-11 07:21:34 -04:00
ipc
kernel Merge: fsnotify: update to upstream (v6.7) 2025-07-21 18:52:59 -03:00
lib Merge: lib/group_cpus: fix NULL pointer dereference from group_cpus_evenly() 2025-07-11 11:46:28 -03:00
mm Merge: Revert GUP commit that introduces potential bug 2025-07-21 18:52:56 -03:00
net net/smc: Fix lookup of netdev by using ib_device_get_netdev() 2025-07-25 16:40:59 +02:00
redhat [redhat] kernel-5.14.0-601.el9 2025-07-21 18:54:16 -03:00
samples
scripts Merge: USB/TBT code rebase of supported drivers to upstream v6.14 2025-07-03 12:52:01 -03:00
security Merge: Update overlayfs to v6.7 2025-06-26 10:58:50 -03:00
sound ASoC: SOF: Intel: hda: do not use missing devm_kmalloc_array() 2025-06-13 20:11:54 +02:00
tools Merge: perf trace: fix return value printing for set_robust_list and rseq 2025-07-21 18:53:00 -03:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS Merge: HyperV rebase to kernel 6.16-rc1 2025-07-15 15:53:50 -03:00
Makefile Merge: USB/TBT code rebase of supported drivers to upstream v6.14 2025-07-03 12:52:01 -03:00
Makefile.rhelver [redhat] kernel-5.14.0-601.el9 2025-07-21 18:54:16 -03:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.