mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
ipv4: remove an unused parameter from configure method of fib_rules_ops.
Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
980c9e8cee
commit
8b3521eeb7
@ -48,7 +48,6 @@ struct fib_rules_ops
|
|||||||
struct flowi *, int);
|
struct flowi *, int);
|
||||||
int (*configure)(struct fib_rule *,
|
int (*configure)(struct fib_rule *,
|
||||||
struct sk_buff *,
|
struct sk_buff *,
|
||||||
struct nlmsghdr *,
|
|
||||||
struct fib_rule_hdr *,
|
struct fib_rule_hdr *,
|
||||||
struct nlattr **);
|
struct nlattr **);
|
||||||
int (*compare)(struct fib_rule *,
|
int (*compare)(struct fib_rule *,
|
||||||
|
@ -299,7 +299,7 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
|
|||||||
} else if (rule->action == FR_ACT_GOTO)
|
} else if (rule->action == FR_ACT_GOTO)
|
||||||
goto errout_free;
|
goto errout_free;
|
||||||
|
|
||||||
err = ops->configure(rule, skb, nlh, frh, tb);
|
err = ops->configure(rule, skb, frh, tb);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto errout_free;
|
goto errout_free;
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
||||||
struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
|
struct fib_rule_hdr *frh,
|
||||||
struct nlattr **tb)
|
struct nlattr **tb)
|
||||||
{
|
{
|
||||||
int err = -EINVAL;
|
int err = -EINVAL;
|
||||||
|
@ -134,7 +134,7 @@ static const struct nla_policy fib4_rule_policy[FRA_MAX+1] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
||||||
struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
|
struct fib_rule_hdr *frh,
|
||||||
struct nlattr **tb)
|
struct nlattr **tb)
|
||||||
{
|
{
|
||||||
struct net *net = sock_net(skb->sk);
|
struct net *net = sock_net(skb->sk);
|
||||||
|
@ -151,7 +151,7 @@ static const struct nla_policy fib6_rule_policy[FRA_MAX+1] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
|
||||||
struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
|
struct fib_rule_hdr *frh,
|
||||||
struct nlattr **tb)
|
struct nlattr **tb)
|
||||||
{
|
{
|
||||||
int err = -EINVAL;
|
int err = -EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user