mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sctp: drop __packed from almost all SCTP structures
__packed is considered harmful as it potentially generates code that
doesn't perform well and its usage should be avoided as much as
possible.
This patch drops __packed from all SCTP structures except one, which is
sctp_signed_cookie. In there it's required, as per changelog on
commit 9834a2bb49
("[SCTP]: Fix sctp_cookie alignment in the packet.").
After this patch, no alignment changes neither in x86 or x86_64 and
no exceptions were noticed during testing on both archs.
Code size for SCTP module also didn't change with this patch.
Cc: David Miller <davem@davemloft.net>
Cc: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb580ad698
commit
85c727b594
2 changed files with 41 additions and 41 deletions
|
@ -374,7 +374,7 @@ typedef struct sctp_sender_hb_info {
|
|||
union sctp_addr daddr;
|
||||
unsigned long sent_at;
|
||||
__u64 hb_nonce;
|
||||
} __packed sctp_sender_hb_info_t;
|
||||
} sctp_sender_hb_info_t;
|
||||
|
||||
struct sctp_stream *sctp_stream_new(__u16 incnt, __u16 outcnt, gfp_t gfp);
|
||||
void sctp_stream_free(struct sctp_stream *stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue