[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211229142339.GB4912@hoboy.vegasvil.org>
Date: Wed, 29 Dec 2021 06:23:39 -0800
From: Richard Cochran <richardcochran@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, Jay Vosburgh <j.vosburgh@...il.com>,
Veaceslav Falico <vfalico@...il.com>,
Andy Gospodarek <andy@...yhouse.net>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Heiner Kallweit <hkallweit1@...il.com>
Subject: Re: [PATCH net-next 2/2] Bonding: return
HWTSTAMP_FLAG_BONDED_PHC_INDEX to notify user space
On Wed, Dec 29, 2021 at 04:09:38PM +0800, Hangbin Liu wrote:
> 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 <kuba@...nel.org>
> Fixes: 085d61000845 ("Bonding: force user to add HWTSTAMP_FLAG_BONDED_PHC_INDEX when get/set HWTSTAMP")
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
Acked-by: Richard Cochran <richardcochran@...il.com>
Powered by blists - more mailing lists