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>
Showing
- include/net/sctp/structs.h 1 addition, 1 deletioninclude/net/sctp/structs.h
- include/net/sctp/ulpevent.h 24 additions, 15 deletionsinclude/net/sctp/ulpevent.h
- include/uapi/linux/sctp.h 5 additions, 1 deletioninclude/uapi/linux/sctp.h
- net/sctp/chunk.c 2 additions, 2 deletionsnet/sctp/chunk.c
- net/sctp/socket.c 26 additions, 9 deletionsnet/sctp/socket.c
- net/sctp/stream_interleave.c 6 additions, 5 deletionsnet/sctp/stream_interleave.c
- net/sctp/ulpqueue.c 4 additions, 4 deletionsnet/sctp/ulpqueue.c
Loading
Please register or sign in to comment