Thread (6 messages) 6 messages, 4 authors, 2025-01-06

Re: [PATCH net-next] sctp: Prepare sctp_v4_get_dst() to dscp_t conversion.

From: Ido Schimmel <idosch@nvidia.com>
Date: 2025-01-06 09:07:56
Also in: linux-sctp

On Thu, Jan 02, 2025 at 05:34:18PM +0100, Guillaume Nault wrote:
Define inet_sk_dscp() to get a dscp_t value from struct inet_sock, so
that sctp_v4_get_dst() can easily set ->flowi4_tos from a dscp_t
variable. For the SCTP_DSCP_SET_MASK case, we can just use
inet_dsfield_to_dscp() to get a dscp_t value.

Then, when converting ->flowi4_tos from __u8 to dscp_t, we'll just have
to drop the inet_dscp_to_dsfield() conversion function.

Signed-off-by: Guillaume Nault <redacted>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help