diff options
author | David S. Miller <davem@davemloft.net> | 2021-12-14 12:28:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-14 12:28:25 +0000 |
commit | d0c3e46484fb9bafcfb0648da919f91eea7e14cd (patch) | |
tree | d0589dd9852ae75573cf70f53e0d920bdeb63eb2 /net/core | |
parent | a3c62a042237d1adeb0290dcb768e17edd6dcd25 (diff) | |
parent | 085d61000845188a9aa9a9524f13a0622a1380d7 (diff) |
Merge branch 'hwtstamp_bonding'
Hangbin Liu says:
====================
net: add new hwtstamp flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
This patchset add a new hwtstamp_config flag HWTSTAMP_FLAG_BONDED_PHC_INDEX.
When user want to get bond active interface's PHC, they need to add this flag
and aware the PHC index may changed.
v3: Use bitwise test to check the flags validation
v2: rename the flag to HWTSTAMP_FLAG_BONDED_PHC_INDEX
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c index 1d309a666932..1b807d119da5 100644 --- a/net/core/dev_ioctl.c +++ b/net/core/dev_ioctl.c @@ -192,7 +192,7 @@ static int net_hwtstamp_validate(struct ifreq *ifr) if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) return -EFAULT; - if (cfg.flags) /* reserved for future extensions */ + if (cfg.flags & ~HWTSTAMP_FLAG_MASK) return -EINVAL; tx_type = cfg.tx_type; |