aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/neighbour.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-09-01 07:13:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 20:40:57 -0400
commit89d69d2b75a8f7e258f4b634cd985374cfd3202e (patch)
tree2f01d6ae1844c92ef09160ad1966edee34ee2d8a /include/net/neighbour.h
parentdcbfef820bdd1cdb412ccf234840e23edf67014f (diff)
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 'include/net/neighbour.h')
-rw-r--r--include/net/neighbour.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 18b69b6cecaf..3817fda82a80 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -118,7 +118,7 @@ struct neighbour
118 int (*output)(struct sk_buff *skb); 118 int (*output)(struct sk_buff *skb);
119 struct sk_buff_head arp_queue; 119 struct sk_buff_head arp_queue;
120 struct timer_list timer; 120 struct timer_list timer;
121 struct neigh_ops *ops; 121 const struct neigh_ops *ops;
122 u8 primary_key[0]; 122 u8 primary_key[0];
123}; 123};
124 124