diff options
| author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 22:49:02 -0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:37:48 -0400 |
| commit | 6cbb0df788b90777a7ed0f9d8261260353f48076 (patch) | |
| tree | 152b75c0279b8f612412f24a5ab35ab6d5a208d8 /net/ipv4/ip_output.c | |
| parent | 614c6cb4f225a7da9f13e5dd0fac3b531078eb9f (diff) | |
[SOCK]: Introduce sk_setup_caps
From tcp_v4_setup_caps, that always is preceded by a call to
__sk_dst_set, so coalesce this sequence into sk_setup_caps, removing
one call to a TCP function in the IP layer.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
| -rw-r--r-- | net/ipv4/ip_output.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index c934f5316c3b..c72fc878f06d 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
| @@ -69,13 +69,10 @@ | |||
| 69 | #include <net/ip.h> | 69 | #include <net/ip.h> |
| 70 | #include <net/protocol.h> | 70 | #include <net/protocol.h> |
| 71 | #include <net/route.h> | 71 | #include <net/route.h> |
| 72 | #include <net/tcp.h> | ||
| 73 | #include <net/udp.h> | ||
| 74 | #include <linux/skbuff.h> | 72 | #include <linux/skbuff.h> |
| 75 | #include <net/sock.h> | 73 | #include <net/sock.h> |
| 76 | #include <net/arp.h> | 74 | #include <net/arp.h> |
| 77 | #include <net/icmp.h> | 75 | #include <net/icmp.h> |
| 78 | #include <net/raw.h> | ||
| 79 | #include <net/checksum.h> | 76 | #include <net/checksum.h> |
| 80 | #include <net/inetpeer.h> | 77 | #include <net/inetpeer.h> |
| 81 | #include <net/checksum.h> | 78 | #include <net/checksum.h> |
| @@ -84,6 +81,7 @@ | |||
| 84 | #include <linux/netfilter_bridge.h> | 81 | #include <linux/netfilter_bridge.h> |
| 85 | #include <linux/mroute.h> | 82 | #include <linux/mroute.h> |
| 86 | #include <linux/netlink.h> | 83 | #include <linux/netlink.h> |
| 84 | #include <linux/tcp.h> | ||
| 87 | 85 | ||
| 88 | /* | 86 | /* |
| 89 | * Shall we try to damage output packets if routing dev changes? | 87 | * Shall we try to damage output packets if routing dev changes? |
| @@ -329,8 +327,7 @@ int ip_queue_xmit(struct sk_buff *skb, int ipfragok) | |||
| 329 | if (ip_route_output_flow(&rt, &fl, sk, 0)) | 327 | if (ip_route_output_flow(&rt, &fl, sk, 0)) |
| 330 | goto no_route; | 328 | goto no_route; |
| 331 | } | 329 | } |
| 332 | __sk_dst_set(sk, &rt->u.dst); | 330 | sk_setup_caps(sk, &rt->u.dst); |
| 333 | tcp_v4_setup_caps(sk, &rt->u.dst); | ||
| 334 | } | 331 | } |
| 335 | skb->dst = dst_clone(&rt->u.dst); | 332 | skb->dst = dst_clone(&rt->u.dst); |
| 336 | 333 | ||
