diff options
| author | Tobias Klauser <klto@zhaw.ch> | 2009-07-13 14:17:49 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-07-13 14:17:49 -0400 |
| commit | 97fd5bc7f2e442482a7a6cc4bc2a286cbb5f4754 (patch) | |
| tree | 0f470bb62721a2aa1fba0908bb3f82bb34d15701 | |
| parent | 8e321c4f72e2fb580a091317ba0fb2941f637ce1 (diff) | |
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: Tobias Klauser <klto@zhaw.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/core/neighbour.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 163b4f5b0365..c6f9ad8e4c7a 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
| @@ -1316,7 +1316,7 @@ void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, | |||
| 1316 | } | 1316 | } |
| 1317 | EXPORT_SYMBOL(pneigh_enqueue); | 1317 | EXPORT_SYMBOL(pneigh_enqueue); |
| 1318 | 1318 | ||
| 1319 | static inline struct neigh_parms *lookup_neigh_params(struct neigh_table *tbl, | 1319 | static inline struct neigh_parms *lookup_neigh_parms(struct neigh_table *tbl, |
| 1320 | struct net *net, int ifindex) | 1320 | struct net *net, int ifindex) |
| 1321 | { | 1321 | { |
| 1322 | struct neigh_parms *p; | 1322 | struct neigh_parms *p; |
| @@ -1337,7 +1337,7 @@ struct neigh_parms *neigh_parms_alloc(struct net_device *dev, | |||
| 1337 | struct net *net = dev_net(dev); | 1337 | struct net *net = dev_net(dev); |
| 1338 | const struct net_device_ops *ops = dev->netdev_ops; | 1338 | const struct net_device_ops *ops = dev->netdev_ops; |
| 1339 | 1339 | ||
| 1340 | ref = lookup_neigh_params(tbl, net, 0); | 1340 | ref = lookup_neigh_parms(tbl, net, 0); |
| 1341 | if (!ref) | 1341 | if (!ref) |
| 1342 | return NULL; | 1342 | return NULL; |
| 1343 | 1343 | ||
| @@ -1906,7 +1906,7 @@ static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | |||
| 1906 | if (tbp[NDTPA_IFINDEX]) | 1906 | if (tbp[NDTPA_IFINDEX]) |
| 1907 | ifindex = nla_get_u32(tbp[NDTPA_IFINDEX]); | 1907 | ifindex = nla_get_u32(tbp[NDTPA_IFINDEX]); |
| 1908 | 1908 | ||
| 1909 | p = lookup_neigh_params(tbl, net, ifindex); | 1909 | p = lookup_neigh_parms(tbl, net, ifindex); |
| 1910 | if (p == NULL) { | 1910 | if (p == NULL) { |
| 1911 | err = -ENOENT; | 1911 | err = -ENOENT; |
| 1912 | goto errout_tbl_lock; | 1912 | goto errout_tbl_lock; |
