]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/sctp/outqueue.c
sctp: add SCTP_PR_STREAM_STATUS sockopt for prsctp
authorXin Long <lucien.xin@gmail.com>
Sat, 1 Apr 2017 09:07:46 +0000 (17:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:52:35 +0000 (14:52 -0700)
commitd229d48d183fbc1391908decc7d2bcf09ca2f38f
tree36804c2c5ec00fd7d3bc3653abba3b2f3b756a84
parentcdccf74b9501207b9d299afe2825a311d461a318
sctp: add SCTP_PR_STREAM_STATUS sockopt for prsctp

Before when implementing sctp prsctp, SCTP_PR_STREAM_STATUS wasn't
added, as it needs to save abandoned_(un)sent for every stream.

After sctp stream reconf is added in sctp, assoc has structure
sctp_stream_out to save per stream info.

This patch is to add SCTP_PR_STREAM_STATUS by putting the prsctp
per stream statistics into sctp_stream_out.

v1->v2:
  fix an indent issue.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
include/uapi/linux/sctp.h
net/sctp/chunk.c
net/sctp/outqueue.c
net/sctp/socket.c