mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 15:03:53 +02:00
net: phy: Use netif_rx().
[ Upstream commita3d73e1590
] Since commitbaebdf48c3
("net: dev: Makes sure netif_rx() can be invoked in any context.") the function netif_rx() can be used in preemptible/thread context as well as in interrupt context. Use netif_rx(). Cc: Andrew Lunn <andrew@lunn.ch> Cc: Heiner Kallweit <hkallweit1@gmail.com> Cc: Radu Pirea <radu-nicolae.pirea@oss.nxp.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of: bc1a59cff9f7 ("phy: mscc: Fix timestamping for vsc8584") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9a1969fbff
commit
94beabf466
|
@ -886,7 +886,7 @@ out:
|
|||
spin_unlock_irqrestore(&dp83640->rx_lock, flags);
|
||||
|
||||
if (shhwtstamps)
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
static void decode_txts(struct dp83640_private *dp83640,
|
||||
|
@ -1332,7 +1332,7 @@ static void rx_timestamp_work(struct work_struct *work)
|
|||
break;
|
||||
}
|
||||
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
if (!skb_queue_empty(&dp83640->rx_queue))
|
||||
|
@ -1383,7 +1383,7 @@ static bool dp83640_rxtstamp(struct mii_timestamper *mii_ts,
|
|||
skb_queue_tail(&dp83640->rx_queue, skb);
|
||||
schedule_delayed_work(&dp83640->ts_work, SKB_TIMESTAMP_TIMEOUT);
|
||||
} else {
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -1218,7 +1218,7 @@ static bool vsc85xx_rxtstamp(struct mii_timestamper *mii_ts,
|
|||
ts.tv_sec--;
|
||||
|
||||
shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ns);
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -436,7 +436,7 @@ static long nxp_c45_do_aux_work(struct ptp_clock_info *ptp)
|
|||
shhwtstamps_rx = skb_hwtstamps(skb);
|
||||
shhwtstamps_rx->hwtstamp = ns_to_ktime(timespec64_to_ns(&ts));
|
||||
NXP_C45_SKB_CB(skb)->header->reserved2 = 0;
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
return reschedule ? 1 : -1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user