Skip to content

sctp: fully support for dscp and flowlabel per transport

Xin Long linux-sctp netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- define ip_queue_xmit as inline in net/ip.h, instead of exporting it in Patch 1/5 according to David's suggestion.
- fix the param len check in sctp_s/getsockopt_peer_addr_params() in Patch 3/5 to guarantee that an old app built with old kernel headers could work on the newer kernel per Marcelo's point.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ipv4: add __ip_queue_xmit() that supports tos paraminclude/net/ip.h net/ipv4/ip_output.c+13 -50 replies
2/5sctp: add support for dscp and flowlabel per transportinclude/linux/sctp.h include/net/sctp/structs.h net/sctp/associola.c +2 more+44 -60 replies
3/5sctp: add spp_ipv6_flowlabel and spp_dscp for sctp_paddrparamsinclude/uapi/linux/sctp.h net/sctp/socket.c+175 -60 replies
4/5sctp: add support for setting flowlabel when adding a transportnet/sctp/associola.c net/sctp/socket.c+15 -20 replies
5/5sctp: check for ipv6_pinfo legal sndflow with flowlabel in sctp_v6_get_dstnet/sctp/ipv6.c+9 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarcelo Ricardo LeitnerNeil Horman
SeriesA-b A-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 net-next 0/5] sctp: fully support for dscp and flowlabel per transport

Now dscp and flowlabel are set from sock when sending the packets, but being multi-homing, sctp also supports for dscp and flowlabel per transport, which is described in section 8.1.12 in RFC6458.

v1->v2:
- define ip_queue_xmit as inline in net/ip.h, instead of exporting it in Patch 1/5 according to David's suggestion.
- fix the param len check in sctp_s/getsockopt_peer_addr_params() in Patch 3/5 to guarantee that an old app built with old kernel headers could work on the newer kernel per Marcelo's point.

Xin Long (5):
ipv4: add __ip_queue_xmit() that supports tos param
sctp: add support for dscp and flowlabel per transport
sctp: add spp_ipv6_flowlabel and spp_dscp for sctp_paddrparams
sctp: add support for setting flowlabel when adding a transport
sctp: check for ipv6_pinfo legal sndflow with flowlabel in

    sctp_v6_get_dst
 include/linux/sctp.h       |   7 ++
 include/net/ip.h           |   9 ++-
 include/net/sctp/structs.h |   9 +++
 include/uapi/linux/sctp.h  |   4 +
 net/ipv4/ip_output.c       |   9 ++-
 net/sctp/associola.c       |  15 ++++
 net/sctp/ipv6.c            |  20 ++++-
 net/sctp/protocol.c        |  16 +++-
 net/sctp/socket.c          | 182 +++++++++++++++++++++++++++++++++++++++++++--
 9 files changed, 254 insertions(+), 17 deletions(-)
Signature · 1 line
2.1.0