summaryrefslogtreecommitdiff
path: root/include/uapi/linux/net_tstamp.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-12-29 23:31:39 +0300
committerJakub Kicinski <kuba@kernel.org>2021-12-29 23:31:39 +0300
commitcfcad56b208957b410ce251e895a728993d72298 (patch)
tree595ea610c3512b1c17863a046bb91ab149e268fa /include/uapi/linux/net_tstamp.h
parent9ed319e411915e882bb4ed99be3ae78667a70022 (diff)
parentcfe355c56e3a5eb993fd4ea807b60f34f91b0cde (diff)
downloadlinux-cfcad56b208957b410ce251e895a728993d72298.tar.xz
Merge branch 'net-define-new-hwtstamp-flag-and-return-it-to-userspace'
Hangbin Liu says: ==================== net: define new hwtstamp flag and return it to userspace This patchset defined the new hwtstamp flag HWTSTAMP_FLAG_BONDED_PHC_INDEX to make userspace program build pass with old kernel header by settting ifdef. Let's also return the flag when do SIOC[G/S]HWTSTAMP to let userspace know that it's necessary for a given netdev. ==================== Link: https://lore.kernel.org/r/20211229080938.231324-1-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/net_tstamp.h')
-rw-r--r--include/uapi/linux/net_tstamp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
index e258e52cfd1f..55501e5e7ac8 100644
--- a/include/uapi/linux/net_tstamp.h
+++ b/include/uapi/linux/net_tstamp.h
@@ -87,6 +87,7 @@ enum hwtstamp_flags {
* will be the PHC index.
*/
HWTSTAMP_FLAG_BONDED_PHC_INDEX = (1<<0),
+#define HWTSTAMP_FLAG_BONDED_PHC_INDEX HWTSTAMP_FLAG_BONDED_PHC_INDEX
HWTSTAMP_FLAG_LAST = HWTSTAMP_FLAG_BONDED_PHC_INDEX,
HWTSTAMP_FLAG_MASK = (HWTSTAMP_FLAG_LAST - 1) | HWTSTAMP_FLAG_LAST