diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/hamradio/bpqether.c | 2 | ||||
-rw-r--r-- | drivers/net/pppoe.c | 6 | ||||
-rw-r--r-- | drivers/net/wan/hdlc.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/lapbether.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index 44b183b58f50..d509b371a562 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -97,7 +97,7 @@ static char bpq_eth_addr[6]; | |||
97 | static int bpq_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *); | 97 | static int bpq_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *); |
98 | static int bpq_device_event(struct notifier_block *, unsigned long, void *); | 98 | static int bpq_device_event(struct notifier_block *, unsigned long, void *); |
99 | 99 | ||
100 | static struct packet_type bpq_packet_type = { | 100 | static struct packet_type bpq_packet_type __read_mostly = { |
101 | .type = cpu_to_be16(ETH_P_BPQ), | 101 | .type = cpu_to_be16(ETH_P_BPQ), |
102 | .func = bpq_rcv, | 102 | .func = bpq_rcv, |
103 | }; | 103 | }; |
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index e2968f084439..f0031f1f97e5 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -513,17 +513,17 @@ out: | |||
513 | return NET_RX_SUCCESS; /* Lies... :-) */ | 513 | return NET_RX_SUCCESS; /* Lies... :-) */ |
514 | } | 514 | } |
515 | 515 | ||
516 | static struct packet_type pppoes_ptype = { | 516 | static struct packet_type pppoes_ptype __read_mostly = { |
517 | .type = cpu_to_be16(ETH_P_PPP_SES), | 517 | .type = cpu_to_be16(ETH_P_PPP_SES), |
518 | .func = pppoe_rcv, | 518 | .func = pppoe_rcv, |
519 | }; | 519 | }; |
520 | 520 | ||
521 | static struct packet_type pppoed_ptype = { | 521 | static struct packet_type pppoed_ptype __read_mostly = { |
522 | .type = cpu_to_be16(ETH_P_PPP_DISC), | 522 | .type = cpu_to_be16(ETH_P_PPP_DISC), |
523 | .func = pppoe_disc_rcv, | 523 | .func = pppoe_disc_rcv, |
524 | }; | 524 | }; |
525 | 525 | ||
526 | static struct proto pppoe_sk_proto = { | 526 | static struct proto pppoe_sk_proto __read_mostly = { |
527 | .name = "PPPOE", | 527 | .name = "PPPOE", |
528 | .owner = THIS_MODULE, | 528 | .owner = THIS_MODULE, |
529 | .obj_size = sizeof(struct pppox_sock), | 529 | .obj_size = sizeof(struct pppox_sock), |
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c index 5ce437205558..7596eae1b35c 100644 --- a/drivers/net/wan/hdlc.c +++ b/drivers/net/wan/hdlc.c | |||
@@ -348,7 +348,7 @@ EXPORT_SYMBOL(unregister_hdlc_protocol); | |||
348 | EXPORT_SYMBOL(attach_hdlc_protocol); | 348 | EXPORT_SYMBOL(attach_hdlc_protocol); |
349 | EXPORT_SYMBOL(detach_hdlc_protocol); | 349 | EXPORT_SYMBOL(detach_hdlc_protocol); |
350 | 350 | ||
351 | static struct packet_type hdlc_packet_type = { | 351 | static struct packet_type hdlc_packet_type __read_mostly = { |
352 | .type = cpu_to_be16(ETH_P_HDLC), | 352 | .type = cpu_to_be16(ETH_P_HDLC), |
353 | .func = hdlc_rcv, | 353 | .func = hdlc_rcv, |
354 | }; | 354 | }; |
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index 96d9eda40894..f85ca1b27f9a 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c | |||
@@ -421,7 +421,7 @@ static int lapbeth_device_event(struct notifier_block *this, | |||
421 | 421 | ||
422 | /* ------------------------------------------------------------------------ */ | 422 | /* ------------------------------------------------------------------------ */ |
423 | 423 | ||
424 | static struct packet_type lapbeth_packet_type = { | 424 | static struct packet_type lapbeth_packet_type __read_mostly = { |
425 | .type = cpu_to_be16(ETH_P_DEC), | 425 | .type = cpu_to_be16(ETH_P_DEC), |
426 | .func = lapbeth_rcv, | 426 | .func = lapbeth_rcv, |
427 | }; | 427 | }; |