From: Hangbin Liu <liuhangbin@gmail.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org, Jay Vosburgh <j.vosburgh@gmail.com>,
Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Heiner Kallweit <hkallweit1@gmail.com>
Subject: Re: [PATCH net-next 1/2] net_tstamp: add new flag HWTSTAMP_FLAGS_UNSTABLE_PHC
Date: Thu, 9 Dec 2021 12:31:30 +0800 [thread overview]
Message-ID: <YbGGosXXCvBAJEx4@Laptop-X1> (raw)
In-Reply-To: <20211208152022.GB18344@hoboy.vegasvil.org>
On Wed, Dec 08, 2021 at 07:20:22AM -0800, Richard Cochran wrote:
> > +/* possible values for hwtstamp_config->flags */
> > +enum hwtstamp_flags {
> > + /*
> > + * With this flag the user should aware that the PHC index
> > + * get/set by syscall is not stable. e.g. the phc index of
> > + * bond active interface may changed after failover.
> > + */
> > + HWTSTAMP_FLAGS_UNSTABLE_PHC = (1<<0),
>
> Can we please find a different name? I see this, and I think,
> "unstable ptp hw clock". Nobody would want to use such a clock.
>
> How about HWTSTAMP_FLAG_BONDED_PHC_INDEX ?
Thanks, this one looks better.
>
> > + /* add new constants above here */
> > + __HWTSTAMP_FLAGS_CNT
> > +};
>
> 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?
> Please make the input/output distinction clear in the comments.
Yes, with the flag name changed to HWTSTAMP_FLAG_BONDED_PHC_INDEX.
The comments also need update.
Thanks
Hangbin
next prev parent reply other threads:[~2021-12-09 4:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-08 4:42 [PATCH net-next 0/2] net: add new hwtstamp flag HWTSTAMP_FLAGS_UNSTABLE_PHC Hangbin Liu
2021-12-08 4:42 ` [PATCH net-next 1/2] net_tstamp: add new " Hangbin Liu
2021-12-08 6:08 ` Jakub Kicinski
2021-12-08 6:27 ` Hangbin Liu
2021-12-08 22:03 ` Jakub Kicinski
2021-12-08 15:20 ` Richard Cochran
2021-12-09 4:31 ` Hangbin Liu [this message]
2021-12-09 21:22 ` Richard Cochran
2021-12-09 21:30 ` Richard Cochran
2021-12-08 4:42 ` [PATCH net-next 2/2] Bonding: force user to add HWTSTAMP_FLAGS_UNSTABLE_PHC when get/set HWTSTAMP Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YbGGosXXCvBAJEx4@Laptop-X1 \
--to=liuhangbin@gmail.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=hkallweit1@gmail.com \
--cc=j.vosburgh@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).