linux-stable/include/net/sctp
Matteo Croce c3e933a5b8 sctp: deduplicate identical skb_checksum_ops
The same skb_checksum_ops struct is defined twice in two different places,
leading to code duplication. Declare it as a global variable into a common
header instead of allocating it on the stack on each function call.
bloat-o-meter reports a slight code shrink.

add/remove: 1/1 grow/shrink: 0/10 up/down: 128/-1282 (-1154)
Function                                     old     new   delta
sctp_csum_ops                                  -     128    +128
crc32c_csum_ops                               16       -     -16
sctp_rcv                                    6616    6583     -33
sctp_packet_pack                            4542    4504     -38
nf_conntrack_sctp_packet                    4980    4926     -54
execute_masked_set_action                   6453    6389     -64
tcf_csum_sctp                                575     428    -147
sctp_gso_segment                            1292    1126    -166
sctp_csum_check                              579     412    -167
sctp_snat_handler                            957     772    -185
sctp_dnat_handler                           1321    1132    -189
l4proto_manip_pkt                           2536    2313    -223
Total: Before=359297613, After=359296459, chg -0.00%

Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-30 14:35:44 -07:00
..
auth.h sctp: add sockopt SCTP_AUTH_DEACTIVATE_KEY 2018-03-14 13:48:27 -04:00
checksum.h sctp: deduplicate identical skb_checksum_ops 2019-05-30 14:35:44 -07:00
command.h sctp: avoid running the sctp state machine recursively 2019-05-01 09:18:57 -04:00
constants.h sctp: rename enum sctp_event to sctp_event_type 2018-11-19 12:25:43 -08:00
sctp.h sctp: implement memory accounting on rx path 2019-04-15 13:36:51 -07:00
sm.h sctp: rename enum sctp_event to sctp_event_type 2018-11-19 12:25:43 -08:00
stream_interleave.h sctp: implement handle_ftsn for sctp_stream_interleave 2017-12-15 13:52:22 -05:00
stream_sched.h sctp: remove extern from stream sched 2017-11-28 11:00:13 -05:00
structs.h sctp: convert to genradix 2019-03-12 10:04:02 -07:00
tsnmap.h
ulpevent.h sctp: define subscribe in sctp_sock as __u16 2018-11-19 12:25:43 -08:00
ulpqueue.h sctp: Pass sk_buff_head explicitly to sctp_ulpq_tail_event(). 2019-04-11 21:33:31 -07:00