diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /net/atm/clip.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'net/atm/clip.c')
-rw-r--r-- | net/atm/clip.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index 95fdd1185067..1d4be60e1390 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
@@ -310,9 +310,9 @@ static int clip_constructor(struct neighbour *neigh) | |||
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | 312 | ||
313 | static u32 clip_hash(const void *pkey, const struct net_device *dev) | 313 | static u32 clip_hash(const void *pkey, const struct net_device *dev, __u32 rnd) |
314 | { | 314 | { |
315 | return jhash_2words(*(u32 *) pkey, dev->ifindex, clip_tbl.hash_rnd); | 315 | return jhash_2words(*(u32 *) pkey, dev->ifindex, rnd); |
316 | } | 316 | } |
317 | 317 | ||
318 | static struct neigh_table clip_tbl = { | 318 | static struct neigh_table clip_tbl = { |
@@ -502,7 +502,6 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip) | |||
502 | struct atmarp_entry *entry; | 502 | struct atmarp_entry *entry; |
503 | int error; | 503 | int error; |
504 | struct clip_vcc *clip_vcc; | 504 | struct clip_vcc *clip_vcc; |
505 | struct flowi fl = { .nl_u = { .ip4_u = { .daddr = ip, .tos = 1}} }; | ||
506 | struct rtable *rt; | 505 | struct rtable *rt; |
507 | 506 | ||
508 | if (vcc->push != clip_push) { | 507 | if (vcc->push != clip_push) { |
@@ -519,9 +518,9 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip) | |||
519 | unlink_clip_vcc(clip_vcc); | 518 | unlink_clip_vcc(clip_vcc); |
520 | return 0; | 519 | return 0; |
521 | } | 520 | } |
522 | error = ip_route_output_key(&init_net, &rt, &fl); | 521 | rt = ip_route_output(&init_net, ip, 0, 1, 0); |
523 | if (error) | 522 | if (IS_ERR(rt)) |
524 | return error; | 523 | return PTR_ERR(rt); |
525 | neigh = __neigh_lookup(&clip_tbl, &ip, rt->dst.dev, 1); | 524 | neigh = __neigh_lookup(&clip_tbl, &ip, rt->dst.dev, 1); |
526 | ip_rt_put(rt); | 525 | ip_rt_put(rt); |
527 | if (!neigh) | 526 | if (!neigh) |