Commit 97fd5bc7 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net: Rename lookup_neigh_params function

Rename lookup_neigh_params to lookup_neigh_parms as the struct is named
neigh_parms and all other functions dealing with the struct carry
neigh_parms in their names.
Signed-off-by: default avatarTobias Klauser <klto@zhaw.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e321c4f
...@@ -1316,7 +1316,7 @@ void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, ...@@ -1316,7 +1316,7 @@ void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p,
} }
EXPORT_SYMBOL(pneigh_enqueue); EXPORT_SYMBOL(pneigh_enqueue);
static inline struct neigh_parms *lookup_neigh_params(struct neigh_table *tbl, static inline struct neigh_parms *lookup_neigh_parms(struct neigh_table *tbl,
struct net *net, int ifindex) struct net *net, int ifindex)
{ {
struct neigh_parms *p; struct neigh_parms *p;
...@@ -1337,7 +1337,7 @@ struct neigh_parms *neigh_parms_alloc(struct net_device *dev, ...@@ -1337,7 +1337,7 @@ struct neigh_parms *neigh_parms_alloc(struct net_device *dev,
struct net *net = dev_net(dev); struct net *net = dev_net(dev);
const struct net_device_ops *ops = dev->netdev_ops; const struct net_device_ops *ops = dev->netdev_ops;
ref = lookup_neigh_params(tbl, net, 0); ref = lookup_neigh_parms(tbl, net, 0);
if (!ref) if (!ref)
return NULL; return NULL;
...@@ -1906,7 +1906,7 @@ static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) ...@@ -1906,7 +1906,7 @@ static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if (tbp[NDTPA_IFINDEX]) if (tbp[NDTPA_IFINDEX])
ifindex = nla_get_u32(tbp[NDTPA_IFINDEX]); ifindex = nla_get_u32(tbp[NDTPA_IFINDEX]);
p = lookup_neigh_params(tbl, net, ifindex); p = lookup_neigh_parms(tbl, net, ifindex);
if (p == NULL) { if (p == NULL) {
err = -ENOENT; err = -ENOENT;
goto errout_tbl_lock; goto errout_tbl_lock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment