Where is netif_rx() not safe to use?
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 3ebfa567b38e59.35614148@not right
Quoted 5 lines · Rask Ingemann Lambertsen
Hi.
I'd like to know if there are situations where
netif_rx()is not safe to use. For example, is it safe to call from a timer or fromdev->poll()?
Sure, that's fine.
Jeff
Quoted 4 lines · [email protected] said:
Quoted 2 lines
I'd like to know if there are situations where
netif_rx()is not safe to use. For example, is it safe to call from a timer or fromdev->poll()?Sure, that's fine.
from dev->poll()? It could work, but that's abusing the napi design. netif_rx() is for non-napi drivers. If a dev has a ->poll() method, it should use netif_receive_skb().
Jason
Quoted 9 lines · Jason Lunz
Quoted 4 lines · [email protected] said:
Quoted 2 lines
I'd like to know if there are situations where
netif_rx()is not safe to use. For example, is it safe to call from a timer or fromdev->poll()?Sure, that's fine.
from
dev->poll()? It could work, but that's abusing the napi design.netif_rx()is for non-napi drivers. If a dev has a ->poll() method, it should usenetif_receive_skb().
agreed.
Jeff