diff options
| author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-01 11:13:19 +0000 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-09-01 17:40:57 -0700 | 
| commit | 89d69d2b75a8f7e258f4b634cd985374cfd3202e (patch) | |
| tree | 2f01d6ae1844c92ef09160ad1966edee34ee2d8a /net/ipv6/ndisc.c | |
| parent | dcbfef820bdd1cdb412ccf234840e23edf67014f (diff) | |
| download | olio-linux-3.10-89d69d2b75a8f7e258f4b634cd985374cfd3202e.tar.xz olio-linux-3.10-89d69d2b75a8f7e258f4b634cd985374cfd3202e.zip  | |
net: make neigh_ops constant
These tables are never modified at runtime. Move to read-only
section.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
| -rw-r--r-- | net/ipv6/ndisc.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 44b4c87e5cc..7015478797f 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -98,7 +98,7 @@ static int pndisc_constructor(struct pneigh_entry *n);  static void pndisc_destructor(struct pneigh_entry *n);  static void pndisc_redo(struct sk_buff *skb); -static struct neigh_ops ndisc_generic_ops = { +static const struct neigh_ops ndisc_generic_ops = {  	.family =		AF_INET6,  	.solicit =		ndisc_solicit,  	.error_report =		ndisc_error_report, @@ -108,7 +108,7 @@ static struct neigh_ops ndisc_generic_ops = {  	.queue_xmit =		dev_queue_xmit,  }; -static struct neigh_ops ndisc_hh_ops = { +static const struct neigh_ops ndisc_hh_ops = {  	.family =		AF_INET6,  	.solicit =		ndisc_solicit,  	.error_report =		ndisc_error_report, @@ -119,7 +119,7 @@ static struct neigh_ops ndisc_hh_ops = {  }; -static struct neigh_ops ndisc_direct_ops = { +static const struct neigh_ops ndisc_direct_ops = {  	.family =		AF_INET6,  	.output =		dev_queue_xmit,  	.connected_output =	dev_queue_xmit,  |