diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 19:29:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 19:29:25 -0400 |
commit | 7a6362800cb7d1d618a697a650c7aaed3eb39320 (patch) | |
tree | 087f9bc6c13ef1fad4b392c5cf9325cd28fa8523 /net/rxrpc | |
parent | 6445ced8670f37cfc2c5e24a9de9b413dbfc788d (diff) | |
parent | ceda86a108671294052cbf51660097b6534672f5 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1480 commits)
bonding: enable netpoll without checking link status
xfrm: Refcount destination entry on xfrm_lookup
net: introduce rx_handler results and logic around that
bonding: get rid of IFF_SLAVE_INACTIVE netdev->priv_flag
bonding: wrap slave state work
net: get rid of multiple bond-related netdevice->priv_flags
bonding: register slave pointer for rx_handler
be2net: Bump up the version number
be2net: Copyright notice change. Update to Emulex instead of ServerEngines
e1000e: fix kconfig for crc32 dependency
netfilter ebtables: fix xt_AUDIT to work with ebtables
xen network backend driver
bonding: Improve syslog message at device creation time
bonding: Call netif_carrier_off after register_netdevice
bonding: Incorrect TX queue offset
net_sched: fix ip_tos2prio
xfrm: fix __xfrm_route_forward()
be2net: Fix UDP packet detected status in RX compl
Phonet: fix aligned-mode pipe socket buffer header reserve
netxen: support for GbE port settings
...
Fix up conflicts in drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
with the staging updates.
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/ar-peer.c | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/net/rxrpc/ar-peer.c b/net/rxrpc/ar-peer.c index a53fb25a64e..55b93dc60d0 100644 --- a/net/rxrpc/ar-peer.c +++ b/net/rxrpc/ar-peer.c | |||
@@ -36,31 +36,15 @@ static void rxrpc_destroy_peer(struct work_struct *work); | |||
36 | static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer) | 36 | static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer) |
37 | { | 37 | { |
38 | struct rtable *rt; | 38 | struct rtable *rt; |
39 | struct flowi fl; | ||
40 | int ret; | ||
41 | 39 | ||
42 | peer->if_mtu = 1500; | 40 | peer->if_mtu = 1500; |
43 | 41 | ||
44 | memset(&fl, 0, sizeof(fl)); | 42 | rt = ip_route_output_ports(&init_net, NULL, |
45 | 43 | peer->srx.transport.sin.sin_addr.s_addr, 0, | |
46 | switch (peer->srx.transport.family) { | 44 | htons(7000), htons(7001), |
47 | case AF_INET: | 45 | IPPROTO_UDP, 0, 0); |
48 | fl.oif = 0; | 46 | if (IS_ERR(rt)) { |
49 | fl.proto = IPPROTO_UDP, | 47 | _leave(" [route err %ld]", PTR_ERR(rt)); |
50 | fl.fl4_dst = peer->srx.transport.sin.sin_addr.s_addr; | ||
51 | fl.fl4_src = 0; | ||
52 | fl.fl4_tos = 0; | ||
53 | /* assume AFS.CM talking to AFS.FS */ | ||
54 | fl.fl_ip_sport = htons(7001); | ||
55 | fl.fl_ip_dport = htons(7000); | ||
56 | break; | ||
57 | default: | ||
58 | BUG(); | ||
59 | } | ||
60 | |||
61 | ret = ip_route_output_key(&init_net, &rt, &fl); | ||
62 | if (ret < 0) { | ||
63 | _leave(" [route err %d]", ret); | ||
64 | return; | 48 | return; |
65 | } | 49 | } |
66 | 50 | ||