ipv4: cleanup - remove two unused parameters from fib_semantic_match().
authorRami Rosen <ramirose@gmail.com>
Mon, 18 May 2009 01:19:12 +0000 (01:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 22:16:37 +0000 (15:16 -0700)
Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_hash.c
net/ipv4/fib_lookup.h
net/ipv4/fib_semantics.c
net/ipv4/fib_trie.c

index ded8c44fb848842a99f9bbe75830936eb596a48e..ecd39454235c0b12f5d99ed86a554220408f403d 100644 (file)
@@ -263,7 +263,6 @@ fn_hash_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result
 
                        err = fib_semantic_match(&f->fn_alias,
                                                 flp, res,
-                                                f->fn_key, fz->fz_mask,
                                                 fz->fz_order);
                        if (err <= 0)
                                goto out;
index 2c1623d2768bfd2a1e5acd952d8ec610337f1294..637b133973bd88e601aee3b833de0efed5b2a017 100644 (file)
@@ -22,8 +22,7 @@ struct fib_alias {
 /* Exported by fib_semantics.c */
 extern int fib_semantic_match(struct list_head *head,
                              const struct flowi *flp,
-                             struct fib_result *res, __be32 zone, __be32 mask,
-                               int prefixlen);
+                             struct fib_result *res, int prefixlen);
 extern void fib_release_info(struct fib_info *);
 extern struct fib_info *fib_create_info(struct fib_config *cfg);
 extern int fib_nh_match(struct fib_config *cfg, struct fib_info *fi);
index f831df500907cb9644b601685b150c1a39aa8485..9b096d6ff3f28eadd6a71fd234a172b8a1d15061 100644 (file)
@@ -866,8 +866,7 @@ failure:
 
 /* Note! fib_semantic_match intentionally uses  RCU list functions. */
 int fib_semantic_match(struct list_head *head, const struct flowi *flp,
-                      struct fib_result *res, __be32 zone, __be32 mask,
-                       int prefixlen)
+                      struct fib_result *res, int prefixlen)
 {
        struct fib_alias *fa;
        int nh_sel = 0;
index ec0ae490f0b60306029126c0d848674cb2ee055d..9070d11058e577f683277798c29fdc61959b5126 100644 (file)
@@ -1347,8 +1347,7 @@ static int check_leaf(struct trie *t, struct leaf *l,
                if (l->key != (key & ntohl(mask)))
                        continue;
 
-               err = fib_semantic_match(&li->falh, flp, res,
-                                        htonl(l->key), mask, plen);
+               err = fib_semantic_match(&li->falh, flp, res, plen);
 
 #ifdef CONFIG_IP_FIB_TRIE_STATS
                if (err <= 0)