History

net_tstamp: define new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX

As we defined the new hwtstamp_config flag HWTSTAMP_FLAG_BONDED_PHC_INDEX as enum, it's not easy for userspace program to check if the flag is supported when build. Let's define the new flag so user space could build it on old kernel with ifdef check.

Hangbin Liu committed 4 years ago

Commit 1bb412d1 parent 9ed319e1 file · +1 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/net_tstamp.h+1−0
@@ -87,6 +87,7 @@ enum hwtstamp_flags { · 86 unmodified lines
8787 * will be the PHC index.
8888 */
8989 HWTSTAMP_FLAG_BONDED_PHC_INDEX = (1<<0),
90+#define HWTSTAMP_FLAG_BONDED_PHC_INDEX HWTSTAMP_FLAG_BONDED_PHC_INDEX
9091
9192 HWTSTAMP_FLAG_LAST = HWTSTAMP_FLAG_BONDED_PHC_INDEX,
9293 HWTSTAMP_FLAG_MASK = (HWTSTAMP_FLAG_LAST - 1) | HWTSTAMP_FLAG_LAST