author | Sinthu Raja <sinthu.raja@ti.com> | |
Tue, 20 Feb 2024 10:35:17 +0000 (10:35 +0000) | ||
committer | Suman Anna <s-anna@ti.com> | |
Wed, 13 Mar 2024 16:38:01 +0000 (11:38 -0500) | ||
commit | ea3344cbf193ca356eac4e089a0bf963b264932a | |
tree | 2907edf526a26283041b5db6b1a01a168aaea8ad | tree | snapshot (tar.xz tar.gz zip) |
parent | f9025fdc15d1a46914bafb071a5924b1a84abedc | commit | diff |
Linux: Update user AF_RPMSG define for 5.15+ kernels
IPC's Linux user space support contains a copy of a few
kernel-defined structs and definitions including the socket
address family used for rpmsg-based sockets - AF_RPMSG. This
driver is currently out-of-tree and so it's definition is
always 'one more' than the last address family defined by
the mainline kernel's socket.h.
A new address family was introduced in 5.15 (AF_MCTP), and as
a result, the AF_RPMSG macro needs to be set to 46 post 5.15
kernel. The user space header has been updated to reflect on
the kernel version and appropriately assign the value of
AF_RPMSG.
Do note that a specific value of AF_RPMSG can always be provided
through the products.mak when KERNEL_INSTALL_DIR is not set.
Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
IPC's Linux user space support contains a copy of a few
kernel-defined structs and definitions including the socket
address family used for rpmsg-based sockets - AF_RPMSG. This
driver is currently out-of-tree and so it's definition is
always 'one more' than the last address family defined by
the mainline kernel's socket.h.
A new address family was introduced in 5.15 (AF_MCTP), and as
a result, the AF_RPMSG macro needs to be set to 46 post 5.15
kernel. The user space header has been updated to reflect on
the kernel version and appropriately assign the value of
AF_RPMSG.
Do note that a specific value of AF_RPMSG can always be provided
through the products.mak when KERNEL_INSTALL_DIR is not set.
Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
linux/include/net/rpmsg.h | diff | blob | history |