mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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>
This commit is contained in:
parent
13206b6bff
commit
4ebdfba73c
11 changed files with 12 additions and 10 deletions
|
@ -136,7 +136,7 @@ int xfrm_output_resume(struct sk_buff *skb, int err)
|
|||
while (likely((err = xfrm_output_one(skb, err)) == 0)) {
|
||||
nf_reset(skb);
|
||||
|
||||
err = skb_dst(skb)->ops->local_out(skb);
|
||||
err = skb_dst(skb)->ops->local_out(skb->sk, skb);
|
||||
if (unlikely(err != 1))
|
||||
goto out;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue