diff options
author | Guillaume Nault <gnault@redhat.com> | 2025-01-02 17:34:18 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-01-06 13:49:38 -0800 |
commit | 3f9f5cd005f5b5243eaa2647d40b9857fa1a901d (patch) | |
tree | 434b4f4cbe9fa59933b328a7c7e40049d87294fb /net/sctp/associola.c | |
parent | 286bb9985f369c47eaa84f27ef6993bab51a41e3 (diff) |
sctp: Prepare sctp_v4_get_dst() to dscp_t conversion.
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 <gnault@redhat.com>
Acked-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/1a645f4a0bc60ad18e7c0916642883ce8a43c013.1735835456.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sctp/associola.c')
0 files changed, 0 insertions, 0 deletions