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>
This commit is contained in:
committed by
David S. Miller
parent
dcbfef820b
commit
89d69d2b75
@@ -26,6 +26,6 @@ extern struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
|
||||
const unsigned char *target_hw);
|
||||
extern void arp_xmit(struct sk_buff *skb);
|
||||
|
||||
extern struct neigh_ops arp_broken_ops;
|
||||
extern const struct neigh_ops arp_broken_ops;
|
||||
|
||||
#endif /* _ARP_H */
|
||||
|
@@ -118,7 +118,7 @@ struct neighbour
|
||||
int (*output)(struct sk_buff *skb);
|
||||
struct sk_buff_head arp_queue;
|
||||
struct timer_list timer;
|
||||
struct neigh_ops *ops;
|
||||
const struct neigh_ops *ops;
|
||||
u8 primary_key[0];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user