/linux/include/net/ |
H A D | sock.h | 1800 u32 tsflags; member 1807 .tsflags = READ_ONCE(sk->sk_tsflags) in sockcm_init() 2615 u32 tsflags = READ_ONCE(sk->sk_tsflags); in sock_recv_timestamp() local 2624 (tsflags & SOF_TIMESTAMPING_RX_SOFTWARE) || in sock_recv_timestamp() 2625 (kt && tsflags & SOF_TIMESTAMPING_SOFTWARE) || in sock_recv_timestamp() 2627 (tsflags & SOF_TIMESTAMPING_RAW_HARDWARE))) in sock_recv_timestamp() 2658 void __sock_tx_timestamp(__u16 tsflags, __u8 *tx_flags); 2669 static inline void _sock_tx_timestamp(struct sock *sk, __u16 tsflags, in _sock_tx_timestamp() argument 2672 if (unlikely(tsflags)) { in _sock_tx_timestamp() 2673 __sock_tx_timestamp(tsflags, tx_flags); in _sock_tx_timestamp() [all …]
|
H A D | ip.h | 99 ipcm->sockc.tsflags = READ_ONCE(inet->sk.sk_tsflags); in ipcm_init_sk()
|
/linux/net/ |
H A D | socket.c | 690 void __sock_tx_timestamp(__u16 tsflags, __u8 *tx_flags) in __sock_tx_timestamp() argument 694 if (tsflags & SOF_TIMESTAMPING_TX_HARDWARE) { in __sock_tx_timestamp() 702 if (tsflags & SOF_TIMESTAMPING_BIND_PHC) in __sock_tx_timestamp() 706 if (tsflags & SOF_TIMESTAMPING_TX_SOFTWARE) in __sock_tx_timestamp() 709 if (tsflags & SOF_TIMESTAMPING_TX_SCHED) in __sock_tx_timestamp() 905 u32 tsflags; in __sock_recv_timestamp() local 947 tsflags = READ_ONCE(sk->sk_tsflags); in __sock_recv_timestamp() 948 if ((tsflags & SOF_TIMESTAMPING_SOFTWARE && in __sock_recv_timestamp() 949 (tsflags & SOF_TIMESTAMPING_RX_SOFTWARE || in __sock_recv_timestamp() 951 !(tsflags & SOF_TIMESTAMPING_OPT_RX_FILTER))) && in __sock_recv_timestamp() [all …]
|
/linux/net/can/j1939/ |
H A D | socket.c | 991 u32 tsflags; in __j1939_sk_errqueue() local 999 tsflags = READ_ONCE(sk->sk_tsflags); in __j1939_sk_errqueue() 1002 if (!(tsflags & SOF_TIMESTAMPING_TX_ACK)) in __j1939_sk_errqueue() 1006 if (!(tsflags & SOF_TIMESTAMPING_TX_SCHED)) in __j1939_sk_errqueue() 1016 if (!(tsflags & SOF_TIMESTAMPING_RX_SOFTWARE)) in __j1939_sk_errqueue() 1073 if (tsflags & SOF_TIMESTAMPING_OPT_ID) in __j1939_sk_errqueue()
|
/linux/net/ipv4/ |
H A D | tcp.c | 480 static void tcp_tx_timestamp(struct sock *sk, u16 tsflags) in tcp_tx_timestamp() argument 484 if (tsflags && skb) { in tcp_tx_timestamp() 488 sock_tx_timestamp(sk, tsflags, &shinfo->tx_flags); in tcp_tx_timestamp() 489 if (tsflags & SOF_TIMESTAMPING_TX_ACK) in tcp_tx_timestamp() 491 if (tsflags & SOF_TIMESTAMPING_TX_RECORD_MASK) in tcp_tx_timestamp() 1324 tcp_tx_timestamp(sk, sockc.tsflags); in tcp_sendmsg_locked() 2247 u32 tsflags = READ_ONCE(sk->sk_tsflags); in tcp_recv_timestamp() local 2287 if (tsflags & SOF_TIMESTAMPING_SOFTWARE && in tcp_recv_timestamp() 2288 (tsflags & SOF_TIMESTAMPING_RX_SOFTWARE || in tcp_recv_timestamp() 2289 !(tsflags & SOF_TIMESTAMPING_OPT_RX_FILTER))) in tcp_recv_timestamp() [all …]
|
H A D | raw.c | 373 skb_setup_tx_timestamp(skb, sockc->tsflags); in raw_send_hdrinc()
|
H A D | tcp_output.c | 1565 u8 tsflags = shinfo->tx_flags & SKBTX_ANY_TSTAMP; in tcp_fragment_tstamp() local 1567 shinfo->tx_flags &= ~tsflags; in tcp_fragment_tstamp() 1568 shinfo2->tx_flags |= tsflags; in tcp_fragment_tstamp()
|
H A D | ip_output.c | 1329 sock_tx_timestamp(sk, ipc->sockc.tsflags, &cork->tx_flags); in ip_setup_cork()
|
/linux/net/ipv6/ |
H A D | ping.c | 122 ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); in ping_v6_sendmsg()
|
H A D | raw.c | 632 skb_setup_tx_timestamp(skb, sockc->tsflags); in rawv6_send_hdrinc() 781 ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); in rawv6_sendmsg()
|
H A D | udp.c | 1354 ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); in udpv6_sendmsg()
|
H A D | ip6_output.c | 1404 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
|
/linux/net/core/ |
H A D | sock.c | 2900 u32 tsflags; in __sock_cmsg_send() local 2916 tsflags = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send() 2917 if (tsflags & ~SOF_TIMESTAMPING_TX_RECORD_MASK) in __sock_cmsg_send() 2920 sockc->tsflags &= ~SOF_TIMESTAMPING_TX_RECORD_MASK; in __sock_cmsg_send() 2921 sockc->tsflags |= tsflags; in __sock_cmsg_send()
|
H A D | skbuff.c | 5549 u32 tsflags; in __skb_tstamp_tx() local 5554 tsflags = READ_ONCE(sk->sk_tsflags); in __skb_tstamp_tx() 5555 if (!hwtstamps && !(tsflags & SOF_TIMESTAMPING_OPT_TX_SWHW) && in __skb_tstamp_tx() 5559 tsonly = tsflags & SOF_TIMESTAMPING_OPT_TSONLY; in __skb_tstamp_tx() 5565 if ((tsflags & SOF_TIMESTAMPING_OPT_STATS) && in __skb_tstamp_tx()
|
/linux/net/can/ |
H A D | raw.c | 969 skb_setup_tx_timestamp(skb, sockc.tsflags); in raw_sendmsg()
|
/linux/net/packet/ |
H A D | af_packet.c | 2121 skb_setup_tx_timestamp(skb, sockc.tsflags); in packet_sendmsg_spkt() 2653 skb_setup_tx_timestamp(skb, sockc->tsflags); in tpacket_fill_skb() 3118 skb_setup_tx_timestamp(skb, sockc.tsflags); in packet_snd()
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 8033 int tsflags; in __tg3_start_xmit() local 8035 tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); in __tg3_start_xmit() 8036 mss |= (tsflags << 11); in __tg3_start_xmit() 8040 int tsflags; in __tg3_start_xmit() local 8042 tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); in __tg3_start_xmit() 8043 base_flags |= tsflags << 12; in __tg3_start_xmit()
|