You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
net: simplify flags for tx timestamping
This patch removes the abstraction introduced by the union skb_shared_tx in
the shared skb data.
The access of the different union elements at several places led to some
confusion about accessing the shared tx_flags e.g. in skb_orphan_try().
http://marc.info/?l=linux-netdev&m=128084897415886&w=2
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4d5870ec10
commit
2244d07bfa
+2
-2
@@ -647,12 +647,12 @@ static int raw_sendmsg(struct kiocb *iocb, struct socket *sock,
|
||||
err = memcpy_fromiovec(skb_put(skb, size), msg->msg_iov, size);
|
||||
if (err < 0)
|
||||
goto free_skb;
|
||||
err = sock_tx_timestamp(msg, sk, skb_tx(skb));
|
||||
err = sock_tx_timestamp(sk, &skb_shinfo(skb)->tx_flags);
|
||||
if (err < 0)
|
||||
goto free_skb;
|
||||
|
||||
/* to be able to check the received tx sock reference in raw_rcv() */
|
||||
skb_tx(skb)->prevent_sk_orphan = 1;
|
||||
skb_shinfo(skb)->tx_flags |= SKBTX_DRV_NEEDS_SK_REF;
|
||||
|
||||
skb->dev = dev;
|
||||
skb->sk = sk;
|
||||
|
||||
Reference in New Issue
Block a user