From: Hangbin Liu <liuhangbin@gmail.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
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>,
Heiner Kallweit <hkallweit1@gmail.com>
Subject: Re: [PATCHv3 net-next 1/2] net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
Date: Wed, 29 Dec 2021 11:50:23 +0800 [thread overview]
Message-ID: <Ycva/zEW4P0B5RAM@Laptop-X1> (raw)
In-Reply-To: <20211229020339.GA3213@hoboy.vegasvil.org>
On Tue, Dec 28, 2021 at 06:03:39PM -0800, Richard Cochran wrote:
> On Tue, Dec 28, 2021 at 08:17:48AM -0800, Jakub Kicinski wrote:
> > That's still just a compile-time fix,
>
> I think Hangbin's immediate question was about compilation. linuxptp
> needs to be able to compile against older system headers.
Yes. That's what I mean.
>
> > if the user space binary
> > is distributed in binary form (distro package) there is no knowing
> > on which kernel versions it will run. I think runtime probing will
> > be necessary.
>
> Yes, that too.
Thanks, I will pay attention on this when do user space implementation.
>
> > If we want the define it should be to the enum name:
> >
> > What about adding matching #defines into the enum declaration?
> >
> > enum hwtstamp_flags {
> > HWTSTAMP_FLAG_BONDED_PHC_INDEX = (1<<0),
> > #define HWTSTAMP_FLAG_BONDED_PHC_INDEX HWTSTAMP_FLAG_BONDED_PHC_INDEX
> > };
> >
> > Examples in include/uapi/linux/rtnetlink.h
>
> Ha! I knew I saw this somewhere.
Thanks for this hint.
Cheers
Hangbin
next prev parent reply other threads:[~2021-12-29 3:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 8:59 [PATCHv3 net-next 0/2] net: add new hwtstamp flag HWTSTAMP_FLAG_BONDED_PHC_INDEX Hangbin Liu
2021-12-10 8:59 ` [PATCHv3 net-next 1/2] net_tstamp: add new " Hangbin Liu
2021-12-28 7:01 ` Hangbin Liu
2021-12-28 15:15 ` Jakub Kicinski
2021-12-28 16:00 ` Richard Cochran
2021-12-28 16:17 ` Jakub Kicinski
2021-12-29 2:03 ` Richard Cochran
2021-12-29 3:50 ` Hangbin Liu [this message]
2021-12-10 8:59 ` [PATCHv3 net-next 2/2] Bonding: force user to add HWTSTAMP_FLAG_BONDED_PHC_INDEX when get/set HWTSTAMP Hangbin Liu
2021-12-14 12:40 ` [PATCHv3 net-next 0/2] net: add new hwtstamp flag HWTSTAMP_FLAG_BONDED_PHC_INDEX patchwork-bot+netdevbpf
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=Ycva/zEW4P0B5RAM@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).