diff options
| author | David S. Miller <davem@davemloft.net> | 2011-05-08 20:24:10 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-05-09 00:24:07 -0400 |
| commit | f5fca6086511294653a9e821f8e22f041415ba7b (patch) | |
| tree | 1ab025012bf44402e7f816428461d8def54016c1 /include | |
| parent | 77968b78242ee25e2a4d759f0fca8dd52df6d479 (diff) | |
ipv4: Pass flow key down into ip_append_*().
This way rt->rt_dst accesses are unnecessary.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/ip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index a4253795c5c5..0b30d3ab4a30 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -106,7 +106,7 @@ extern int __ip_local_out(struct sk_buff *skb); | |||
| 106 | extern int ip_local_out(struct sk_buff *skb); | 106 | extern int ip_local_out(struct sk_buff *skb); |
| 107 | extern int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl); | 107 | extern int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl); |
| 108 | extern void ip_init(void); | 108 | extern void ip_init(void); |
| 109 | extern int ip_append_data(struct sock *sk, | 109 | extern int ip_append_data(struct sock *sk, struct flowi4 *fl4, |
| 110 | int getfrag(void *from, char *to, int offset, int len, | 110 | int getfrag(void *from, char *to, int offset, int len, |
| 111 | int odd, struct sk_buff *skb), | 111 | int odd, struct sk_buff *skb), |
| 112 | void *from, int len, int protolen, | 112 | void *from, int len, int protolen, |
| @@ -114,7 +114,7 @@ extern int ip_append_data(struct sock *sk, | |||
| 114 | struct rtable **rt, | 114 | struct rtable **rt, |
| 115 | unsigned int flags); | 115 | unsigned int flags); |
| 116 | extern int ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb); | 116 | extern int ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb); |
| 117 | extern ssize_t ip_append_page(struct sock *sk, struct page *page, | 117 | extern ssize_t ip_append_page(struct sock *sk, struct flowi4 *fl4, struct page *page, |
| 118 | int offset, size_t size, int flags); | 118 | int offset, size_t size, int flags); |
| 119 | extern struct sk_buff *__ip_make_skb(struct sock *sk, | 119 | extern struct sk_buff *__ip_make_skb(struct sock *sk, |
| 120 | struct flowi4 *fl4, | 120 | struct flowi4 *fl4, |
