mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: sctp: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: linux-sctp@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a4cdd9ff1f
commit
9c3b575183
5 changed files with 66 additions and 52 deletions
|
@ -72,7 +72,7 @@ typedef enum sctp_disposition (sctp_state_fn_t) (
|
|||
const union sctp_subtype type,
|
||||
void *arg,
|
||||
struct sctp_cmd_seq *commands);
|
||||
typedef void (sctp_timer_event_t) (unsigned long);
|
||||
typedef void (sctp_timer_event_t) (struct timer_list *);
|
||||
struct sctp_sm_table_entry {
|
||||
sctp_state_fn_t *fn;
|
||||
const char *name;
|
||||
|
@ -314,10 +314,10 @@ int sctp_do_sm(struct net *net, enum sctp_event event_type,
|
|||
void *event_arg, gfp_t gfp);
|
||||
|
||||
/* 2nd level prototypes */
|
||||
void sctp_generate_t3_rtx_event(unsigned long peer);
|
||||
void sctp_generate_heartbeat_event(unsigned long peer);
|
||||
void sctp_generate_reconf_event(unsigned long peer);
|
||||
void sctp_generate_proto_unreach_event(unsigned long peer);
|
||||
void sctp_generate_t3_rtx_event(struct timer_list *t);
|
||||
void sctp_generate_heartbeat_event(struct timer_list *t);
|
||||
void sctp_generate_reconf_event(struct timer_list *t);
|
||||
void sctp_generate_proto_unreach_event(struct timer_list *t);
|
||||
|
||||
void sctp_ootb_pkt_free(struct sctp_packet *packet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue