Is there an skb_alloc function that can be used from interrupt handler? Looks 
like netdev_alloc_skb()
can't be used since I see following trace with kernel hack debug options 

[  652.481713] [<c021007c>] (unwind_backtrace) from [<c020bdcc>] 
[  652.481725] [<c020bdcc>] (show_stack) from [<c0517780>] 
[  652.481736] [<c0517780>] (dump_stack) from [<c0256a70>] 
[  652.481746] [<c0256a70>] (___might_sleep) from [<c0939e80>] 
[  652.481755] [<c0939e80>] (rt_spin_lock) from [<c07d827c>] 
[  652.481774] [<c07d827c>] (__netdev_alloc_skb) from [<bf23a544>] 
(emac_rx_hardirq+0x374/0x554 [prueth])
[  652.481793] [<bf23a544>] (emac_rx_hardirq [prueth]) from [<c02925dc>] 

This is running under RT kernel off 4.9.y

Murali Karicheri
Linux Kernel, Keystone

Reply via email to