Thread (10 messages) 10 messages, 3 authors, 2021-12-09

Re: [PATCH net-next 1/2] net_tstamp: add new flag HWTSTAMP_FLAGS_UNSTABLE_PHC

flat view

From: Richard Cochran <richardcochran@gmail.com>
Date: 2021-12-09 21:31:12

On Thu, Dec 09, 2021 at 01:22:58PM -0800, Richard Cochran wrote:
On Thu, Dec 09, 2021 at 12:31:30PM +0800, Hangbin Liu wrote:
quoted
On Wed, Dec 08, 2021 at 07:20:22AM -0800, Richard Cochran wrote:
quoted
I guess that the original intent of hwtstamp_config.flags was for user
space to SET flags that it wanted. 
Now this has become a place for drivers to return values back.
I think it's a flag that when uses want phc index of bond.
There is no affect for other drivers. It only affect bond interfaces.
When this flag set, it means users want to get the info from bond.

Do I missed something?
No, I simply mean that the input/output direction of the bit in the
flags should be clear.

- User space will not set this bit, only read it.
- Drivers may set this bit, but if user sets it, it is an error.
Oh, I am confused.  Your patch does this:

- if user sets bit, then return bonded index
- otherwise, return EOPNOTSUPP

That is fine with me.

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help