mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: replace ipfragok with skb->local_df
As Herbert Xu said: we should be able to simply replace ipfragok with skb->local_df. commit f88037(sctp: Drop ipfargok in sctp_xmit function) has droped ipfragok and set local_df value properly. The patch kills the ipfragok parameter of .queue_xmit(). Signed-off-by: Shan Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0eecb78494
commit
4e15ed4d93
15 changed files with 20 additions and 20 deletions
|
|
@ -954,7 +954,8 @@ int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb, size_t dat
|
|||
}
|
||||
|
||||
/* Queue the packet to IP for output */
|
||||
error = ip_queue_xmit(skb, 1);
|
||||
skb->local_df = 1;
|
||||
error = ip_queue_xmit(skb);
|
||||
|
||||
/* Update stats */
|
||||
if (error >= 0) {
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ static int l2tp_ip_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *m
|
|||
skb_dst_set(skb, dst_clone(&rt->u.dst));
|
||||
|
||||
/* Queue the packet to IP for output */
|
||||
rc = ip_queue_xmit(skb, 0);
|
||||
rc = ip_queue_xmit(skb);
|
||||
|
||||
error:
|
||||
/* Update stats */
|
||||
|
|
|
|||
Loading…
Reference in a new issue