diff options
author | Hangbin Liu <[email protected]> | 2021-12-29 16:09:38 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-12-29 12:31:37 -0800 |
commit | cfe355c56e3a5eb993fd4ea807b60f34f91b0cde (patch) | |
tree | 595ea610c3512b1c17863a046bb91ab149e268fa /net/unix/sysctl_net_unix.c | |
parent | 1bb412d46ca9df90a3fe4b704f5385f03621455d (diff) |
Bonding: return HWTSTAMP_FLAG_BONDED_PHC_INDEX to notify user space
If the userspace program is distributed in binary form (distro package),
there is no way to know on which kernel versions it will run.
Let's only check if the flag was set when do SIOCSHWTSTAMP. And return
hwtstamp_config with flag HWTSTAMP_FLAG_BONDED_PHC_INDEX to notify
userspace whether the new feature is supported or not.
Suggested-by: Jakub Kicinski <[email protected]>
Fixes: 085d61000845 ("Bonding: force user to add HWTSTAMP_FLAG_BONDED_PHC_INDEX when get/set HWTSTAMP")
Signed-off-by: Hangbin Liu <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions