diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-10-07 23:48:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-08 13:26:55 +0200 |
commit | 4ebdfba73c09d8568d891bae87c40fad43dd7f41 (patch) | |
tree | f90cbfbed25de48ec9972d9b294cdcd856f05a12 /drivers/net/vrf.c | |
parent | net: Pass net into dst_output and remove dst_output_okfn (diff) | |
download | linux-4ebdfba73c09d8568d891bae87c40fad43dd7f41.tar.xz 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 'drivers/net/vrf.c')
-rw-r--r-- | drivers/net/vrf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index 64499766e00f..1039eb5f6c2a 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -74,9 +74,9 @@ static struct dst_entry *vrf_ip_check(struct dst_entry *dst, u32 cookie) return dst; } -static int vrf_ip_local_out(struct sk_buff *skb) +static int vrf_ip_local_out(struct sock *sk, struct sk_buff *skb) { - return ip_local_out(skb); + return ip_local_out_sk(sk, skb); } static unsigned int vrf_v4_mtu(const struct dst_entry *dst) |