summaryrefslogtreecommitdiffstats
path: root/include/net/dst_ops.h
diff options
context:
space:
mode:
authorEric W. Biederman2015-10-07 23:48:36 +0200
committerDavid S. Miller2015-10-08 13:26:55 +0200
commit4ebdfba73c09d8568d891bae87c40fad43dd7f41 (patch)
treef90cbfbed25de48ec9972d9b294cdcd856f05a12 /include/net/dst_ops.h
parentnet: Pass net into dst_output and remove dst_output_okfn (diff)
downloadkernel-qcow2-linux-4ebdfba73c09d8568d891bae87c40fad43dd7f41.tar.gz
kernel-qcow2-linux-4ebdfba73c09d8568d891bae87c40fad43dd7f41.tar.xz
kernel-qcow2-linux-4ebdfba73c09d8568d891bae87c40fad43dd7f41.zip
dst: Pass a sk into .local_out
For consistency with the other similar methods in the kernel pass a struct sock into the dst_ops .local_out method. Simplifying the socket passing case is needed a prequel to passing a struct net reference into .local_out. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dst_ops.h')
-rw-r--r--include/net/dst_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h
index d64253914a6a..3f26a6af444e 100644
--- a/include/net/dst_ops.h
+++ b/include/net/dst_ops.h
@@ -28,7 +28,7 @@ struct dst_ops {
struct sk_buff *skb, u32 mtu);
void (*redirect)(struct dst_entry *dst, struct sock *sk,
struct sk_buff *skb);
- int (*local_out)(struct sk_buff *skb);
+ int (*local_out)(struct sock *sk, struct sk_buff *skb);
struct neighbour * (*neigh_lookup)(const struct dst_entry *dst,
struct sk_buff *skb,
const void *daddr);