Thread (21 messages) 21 messages, 2 authors, 2022-02-17

Re: [PATCH net-next v6 3/8] net/funeth: probing and netdev ops

From: Dimitris Michailidis <hidden>
Date: 2022-02-17 03:07:30

On Wed, Jan 12, 2022 at 2:56 PM Jakub Kicinski [off-list ref] wrote:
On Sun,  9 Jan 2022 17:56:31 -0800 Dimitris Michailidis wrote:
quoted
+static int fun_hwtstamp_set(struct net_device *dev, struct ifreq *ifr)
+{
+     struct funeth_priv *fp = netdev_priv(dev);
+     struct hwtstamp_config cfg;
+
+     if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg)))
+             return -EFAULT;
+
+     if (cfg.flags)           /* flags is reserved, must be 0 */
+             return -EINVAL;
+
This check was moved to the core in 9c9211a3fc7a ("net_tstamp: add new
flag HWTSTAMP_FLAG_BONDED_PHC_INDEX")
Thanks, I've changed it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help