OSDN Git Service

sctp: introduce sctp_assoc_update_frag_point
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:58:55 +0000 (16:58 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:23 +0000 (14:35 -0400)
commit2f5e3c9df6938b823664869ec87af3da8df272f6
tree22be567d684b1c89bc40f433099a2909fdbbfb2e
parentfeddd6c1af30ab11d73ce0e4e76b40dfc899dbda
sctp: introduce sctp_assoc_update_frag_point

and avoid the open-coded versions of it.

Now sctp_datamsg_from_user can just re-use asoc->frag_point as it will
always be updated.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/chunk.c
net/sctp/socket.c