Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321983
b: refs/heads/master
c: 6024935
h: refs/heads/master
i:
  321981: 8b21144
  321979: ba3477c
  321975: 44eb6a8
  321967: 4e7346c
  321951: ae654c1
  321919: e83eab3
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Aug 14, 2012
1 parent 9648f27 commit a97139e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4855d6f3116e891b66198838b683dce3dcf6e874
refs/heads/master: 6024935f5ff5f1646bce8404416318e5fd4a0c4a
2 changes: 1 addition & 1 deletion trunk/include/net/llc.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extern int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
extern void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb);
extern void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb);

extern int llc_station_init(void);
extern void llc_station_init(void);
extern void llc_station_exit(void);

#ifdef CONFIG_PROC_FS
Expand Down
19 changes: 2 additions & 17 deletions trunk/net/llc/llc_station.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,33 +687,18 @@ static void llc_station_rcv(struct sk_buff *skb)
llc_station_state_process(skb);
}

int __init llc_station_init(void)
void __init llc_station_init(void)
{
int rc = -ENOBUFS;
struct sk_buff *skb;
struct llc_station_state_ev *ev;

skb_queue_head_init(&llc_main_station.mac_pdu_q);
skb_queue_head_init(&llc_main_station.ev_q.list);
spin_lock_init(&llc_main_station.ev_q.lock);
setup_timer(&llc_main_station.ack_timer, llc_station_ack_tmr_cb,
(unsigned long)&llc_main_station);
llc_main_station.ack_timer.expires = jiffies +
sysctl_llc_station_ack_timeout;
skb = alloc_skb(0, GFP_ATOMIC);
if (!skb)
goto out;
rc = 0;
llc_set_station_handler(llc_station_rcv);
ev = llc_station_ev(skb);
memset(ev, 0, sizeof(*ev));
llc_main_station.maximum_retry = 1;
llc_main_station.state = LLC_STATION_STATE_DOWN;
ev->type = LLC_STATION_EV_TYPE_SIMPLE;
ev->prim_type = LLC_STATION_EV_ENABLE_WITHOUT_DUP_ADDR_CHECK;
rc = llc_station_next_state(skb);
out:
return rc;
llc_main_station.state = LLC_STATION_STATE_UP;
}

void __exit llc_station_exit(void)
Expand Down

0 comments on commit a97139e

Please sign in to comment.