]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: define subscribe in sctp_sock as __u16
authorXin Long <lucien.xin@gmail.com>
Sun, 18 Nov 2018 08:08:51 +0000 (16:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Nov 2018 20:25:43 +0000 (12:25 -0800)
commit9a7ff8ae5095532e411d9e574dba312b1d045987
tree52dd65d8f7d0efc982b5ee829c5eabc9c0d8ef90
parent7f8634ffde64ab9544b9bea1c9fd395570286ab7
sctp: define subscribe in sctp_sock as __u16

The member subscribe in sctp_sock is used to indicate to which of
the events it is subscribed, more like a group of flags. So it's
better to be defined as __u16 (2 bytpes), instead of struct
sctp_event_subscribe (13 bytes).

Note that sctp_event_subscribe is an UAPI struct, used on sockopt
calls, and thus it will not be removed. This patch only changes
the internal storage of the flags.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
include/net/sctp/ulpevent.h
include/uapi/linux/sctp.h
net/sctp/chunk.c
net/sctp/socket.c
net/sctp/stream_interleave.c
net/sctp/ulpqueue.c