[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 11 Nov 2022 08:13:56 -0300
From: Fabio Estevam <festevam@...il.com>
To: Vladimir Oltean <olteanv@...il.com>
Cc: kuba@...nel.org, andrew@...n.ch, netdev@...r.kernel.org,
Steffen Bätz <steffen@...osonix.de>,
Fabio Estevam <festevam@...x.de>
Subject: Re: [PATCH net-next] net: dsa: mv88e6xxx: Allow hwstamping on the
master port
Hi Vladimir,
On Thu, Nov 10, 2022 at 9:53 AM Vladimir Oltean <olteanv@...il.com> wrote:
> NACK.
>
> Please extend dsa_master_ioctl() to "see through" the dp->ds->ops->port_hwtstamp_get()
> pointer, similar to what dsa_port_can_configure_learning() does. Create
> a fake struct ifreq, call port_hwtstamp_get(), see if it returned
> -EOPNOTSUPP, and wrap that into a dsa_port_supports_hwtstamp() function,
> and call that instead of the current simplistic checks for the function
> pointers.
I tried to implement what you suggested in the attached patch, but I
am not sure it is correct.
If it doesn't work, please cook a patch so we can try it.
I am not familiar with the DSA code, sorry.
Thanks
View attachment "0001-net-dsa-Introduce-dsa_port_supports_hwtstamp.patch" of type "text/x-patch" (3179 bytes)
Powered by blists - more mailing lists