Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Just several instances of overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1923,13 +1923,11 @@ retry:
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
sockc.tsflags = 0;
|
||||
sockc.tsflags = sk->sk_tsflags;
|
||||
if (msg->msg_controllen) {
|
||||
err = sock_cmsg_send(sk, msg, &sockc);
|
||||
if (unlikely(err)) {
|
||||
err = -EINVAL;
|
||||
if (unlikely(err))
|
||||
goto out_unlock;
|
||||
}
|
||||
}
|
||||
|
||||
skb->protocol = proto;
|
||||
@@ -2642,7 +2640,7 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
|
||||
dev = dev_get_by_index(sock_net(&po->sk), saddr->sll_ifindex);
|
||||
}
|
||||
|
||||
sockc.tsflags = 0;
|
||||
sockc.tsflags = po->sk.sk_tsflags;
|
||||
if (msg->msg_controllen) {
|
||||
err = sock_cmsg_send(&po->sk, msg, &sockc);
|
||||
if (unlikely(err))
|
||||
@@ -2845,7 +2843,7 @@ static int packet_snd(struct socket *sock, struct msghdr *msg, size_t len)
|
||||
if (unlikely(!(dev->flags & IFF_UP)))
|
||||
goto out_unlock;
|
||||
|
||||
sockc.tsflags = 0;
|
||||
sockc.tsflags = sk->sk_tsflags;
|
||||
sockc.mark = sk->sk_mark;
|
||||
if (msg->msg_controllen) {
|
||||
err = sock_cmsg_send(sk, msg, &sockc);
|
||||
|
Reference in New Issue
Block a user