NAPI: Poll is not getting invoked.
From: Amar Mudrankit <hidden>
Date: 2008-07-24 06:37:45
During the experimentation of NAPI on ethernet driver, the poll function registered for the driver is not getting invoked, though it was scheduled successfully. In the interrupt handler function when packet is received, I have scheduled a poll using: netif_rx_schedule(); The control is reaching this function and executing netif_rx_schedule() which was verified by putting some debug printk statements in code. But, initial printk statement in the "poll " is not getting printed, which indicates that poll function is not getting invoked. During alloc_netdev, I have registered the poll function for my net_device: netif_napi_add(); and enabled it using: napi_enable(); during the call to dev->open(). Am I missing something in the NAPI process? Can somebody please point out the things that I can try to debug this issue? Regards, Amar