diff options
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/errqueue.h | 20 | ||||
| -rw-r--r-- | include/uapi/linux/net_tstamp.h | 10 |
2 files changed, 27 insertions, 3 deletions
diff --git a/include/uapi/linux/errqueue.h b/include/uapi/linux/errqueue.h index aacd4fb7102a..07bdce1f444a 100644 --- a/include/uapi/linux/errqueue.h +++ b/include/uapi/linux/errqueue.h | |||
| @@ -22,5 +22,25 @@ struct sock_extended_err { | |||
| 22 | 22 | ||
| 23 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) | 23 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) |
| 24 | 24 | ||
| 25 | /** | ||
| 26 | * struct scm_timestamping - timestamps exposed through cmsg | ||
| 27 | * | ||
| 28 | * The timestamping interfaces SO_TIMESTAMPING, MSG_TSTAMP_* | ||
| 29 | * communicate network timestamps by passing this struct in a cmsg with | ||
| 30 | * recvmsg(). See Documentation/networking/timestamping.txt for details. | ||
| 31 | */ | ||
| 32 | struct scm_timestamping { | ||
| 33 | struct timespec ts[3]; | ||
| 34 | }; | ||
| 35 | |||
| 36 | /* The type of scm_timestamping, passed in sock_extended_err ee_info. | ||
| 37 | * This defines the type of ts[0]. For SCM_TSTAMP_SND only, if ts[0] | ||
| 38 | * is zero, then this is a hardware timestamp and recorded in ts[2]. | ||
| 39 | */ | ||
| 40 | enum { | ||
| 41 | SCM_TSTAMP_SND, /* driver passed skb to NIC, or HW */ | ||
| 42 | SCM_TSTAMP_SCHED, /* data entered the packet scheduler */ | ||
| 43 | SCM_TSTAMP_ACK, /* data acknowledged by peer */ | ||
| 44 | }; | ||
| 25 | 45 | ||
| 26 | #endif /* _UAPI_LINUX_ERRQUEUE_H */ | 46 | #endif /* _UAPI_LINUX_ERRQUEUE_H */ |
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h index f53879c0f590..ff354021bb69 100644 --- a/include/uapi/linux/net_tstamp.h +++ b/include/uapi/linux/net_tstamp.h | |||
| @@ -20,9 +20,13 @@ enum { | |||
| 20 | SOF_TIMESTAMPING_SOFTWARE = (1<<4), | 20 | SOF_TIMESTAMPING_SOFTWARE = (1<<4), |
| 21 | SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5), | 21 | SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5), |
| 22 | SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6), | 22 | SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6), |
| 23 | SOF_TIMESTAMPING_MASK = | 23 | SOF_TIMESTAMPING_OPT_ID = (1<<7), |
| 24 | (SOF_TIMESTAMPING_RAW_HARDWARE - 1) | | 24 | SOF_TIMESTAMPING_TX_SCHED = (1<<8), |
| 25 | SOF_TIMESTAMPING_RAW_HARDWARE | 25 | SOF_TIMESTAMPING_TX_ACK = (1<<9), |
| 26 | |||
| 27 | SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_TX_ACK, | ||
| 28 | SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) | | ||
| 29 | SOF_TIMESTAMPING_LAST | ||
| 26 | }; | 30 | }; |
| 27 | 31 | ||
| 28 | /** | 32 | /** |
