diff options
author | Andi Kleen <ak@suse.de> | 2007-04-20 20:12:43 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:26 -0400 |
commit | 9958089a43ae8a9af07402461c0b2b7548c7341e (patch) | |
tree | 6d07cf01f9f6cc647dd6b01d0a16757f025845f8 /include/net | |
parent | 4ac02bab77438b484a5cf855a002fb6a1d592894 (diff) |
[NET]: Move sk_setup_caps() out of line.
It is far too large to be an inline and not in any hot paths.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sock.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 390c04700590..25c37e34bfdc 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1075,19 +1075,7 @@ static inline int sk_can_gso(const struct sock *sk) | |||
1075 | return net_gso_ok(sk->sk_route_caps, sk->sk_gso_type); | 1075 | return net_gso_ok(sk->sk_route_caps, sk->sk_gso_type); |
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | static inline void sk_setup_caps(struct sock *sk, struct dst_entry *dst) | 1078 | extern void sk_setup_caps(struct sock *sk, struct dst_entry *dst); |
1079 | { | ||
1080 | __sk_dst_set(sk, dst); | ||
1081 | sk->sk_route_caps = dst->dev->features; | ||
1082 | if (sk->sk_route_caps & NETIF_F_GSO) | ||
1083 | sk->sk_route_caps |= NETIF_F_GSO_MASK; | ||
1084 | if (sk_can_gso(sk)) { | ||
1085 | if (dst->header_len) | ||
1086 | sk->sk_route_caps &= ~NETIF_F_GSO_MASK; | ||
1087 | else | ||
1088 | sk->sk_route_caps |= NETIF_F_SG | NETIF_F_HW_CSUM; | ||
1089 | } | ||
1090 | } | ||
1091 | 1079 | ||
1092 | static inline void sk_charge_skb(struct sock *sk, struct sk_buff *skb) | 1080 | static inline void sk_charge_skb(struct sock *sk, struct sk_buff *skb) |
1093 | { | 1081 | { |