]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/netfilter/arptable_filter.c
[NETFILTER]: Mark hooks __read_mostly
[net-next-2.6.git] / net / ipv4 / netfilter / arptable_filter.c
index 75c0230625331e91ac2ed5d28841072a24a8db33..7201511d54d2dbc0da216b4ae8ff04d0483dd733 100644 (file)
@@ -56,15 +56,15 @@ static struct arpt_table packet_filter = {
 
 /* The work comes in here from netfilter.c */
 static unsigned int arpt_hook(unsigned int hook,
-                             struct sk_buff **pskb,
+                             struct sk_buff *skb,
                              const struct net_device *in,
                              const struct net_device *out,
                              int (*okfn)(struct sk_buff *))
 {
-       return arpt_do_table(pskb, hook, in, out, &packet_filter);
+       return arpt_do_table(skb, hook, in, out, &packet_filter);
 }
 
-static struct nf_hook_ops arpt_ops[] = {
+static struct nf_hook_ops arpt_ops[] __read_mostly = {
        {
                .hook           = arpt_hook,
                .owner          = THIS_MODULE,