aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/internal_errqueue.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-08-13 14:28:36 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2018-08-13 14:28:36 -0700
commitac50c81a08025e36dd5a6e9127c98e08d3195c9c (patch)
tree6a4341a193885e45017a320874dfc81a4785f6ce /src/core/lib/iomgr/internal_errqueue.h
parent4af7ef8c1fe10f08d52e1223342cbbcbaeee4137 (diff)
Try
Diffstat (limited to 'src/core/lib/iomgr/internal_errqueue.h')
-rw-r--r--src/core/lib/iomgr/internal_errqueue.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/core/lib/iomgr/internal_errqueue.h b/src/core/lib/iomgr/internal_errqueue.h
index bbe3377b43..50037bf0e9 100644
--- a/src/core/lib/iomgr/internal_errqueue.h
+++ b/src/core/lib/iomgr/internal_errqueue.h
@@ -41,36 +41,6 @@
#endif /* GRPC_LINUX_ERRQUEUE */
namespace grpc_core {
-/* Redefining scm_timestamping in the same way that <linux/errqueue.h> defines
- * it, so that code compiles on systems that don't have it. */
-struct scm_timestamping {
- struct timespec ts[3];
-};
-
-/* Also redefine timestamp types */
-/* The timestamp type for when the driver passed skb to NIC, or HW. */
-constexpr int SCM_TSTAMP_SND = 0;
-/* The timestamp type for when data entered the packet scheduler. */
-constexpr int SCM_TSTAMP_SCHED = 1;
-/* The timestamp type for when data acknowledged by peer. */
-constexpr int SCM_TSTAMP_ACK = 2;
-
-/* Redefine required constants from <linux/net_tstamp.h> */
-constexpr uint32_t SOF_TIMESTAMPING_TX_SOFTWARE = 1u << 1;
-constexpr uint32_t SOF_TIMESTAMPING_SOFTWARE = 1u << 4;
-constexpr uint32_t SOF_TIMESTAMPING_OPT_ID = 1u << 7;
-constexpr uint32_t SOF_TIMESTAMPING_TX_SCHED = 1u << 8;
-constexpr uint32_t SOF_TIMESTAMPING_TX_ACK = 1u << 9;
-constexpr uint32_t SOF_TIMESTAMPING_OPT_TSONLY = 1u << 11;
-
-constexpr uint32_t kTimestampingSocketOptions = SOF_TIMESTAMPING_SOFTWARE |
- SOF_TIMESTAMPING_OPT_ID |
- SOF_TIMESTAMPING_OPT_TSONLY;
-
-constexpr uint32_t kTimestampingRecordingOptions =
- SOF_TIMESTAMPING_TX_SCHED | SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_TX_ACK;
-
/* Returns true if kernel is capable of supporting errqueue and timestamping.
* Currently allowing only linux kernels above 4.0.0
*/