]> Gentwo Git Trees - linux/.git/commit
rds: Fix endianness annotations for RDS extension headers
authorUjwal Kundur <ujwal.kundur@gmail.com>
Wed, 20 Aug 2025 17:55:50 +0000 (23:25 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Aug 2025 23:44:39 +0000 (16:44 -0700)
commitbcb28bee987a1e161eaa5cc4cf2fb0e21306d4a7
treeaf51f96f3491ae975c8a1a5dc3ab5d0c8e35476c
parent77907a068717fbefb25faf01fecca553aca6ccaa
rds: Fix endianness annotations for RDS extension headers

Per the RDS 3.1 spec [1], RDS extension headers EXTHDR_NPATHS and
EXTHDR_GEN_NUM are be16 and be32 values respectively, exchanged during
normal operations over-the-wire (RDS Ping/Pong). This contrasts their
declarations as host endian unsigned ints.

Fix the annotations across occurrences. Flagged by Sparse.

[1] https://oss.oracle.com/projects/rds/dist/documentation/rds-3.1-spec.html

Signed-off-by: Ujwal Kundur <ujwal.kundur@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Link: https://patch.msgid.link/20250820175550.498-5-ujwal.kundur@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rds/message.c
net/rds/recv.c
net/rds/send.c