Hi Behrooz the right place to play with NAPI is the driver, if you want to change the NAPI behaviour according to ring state or similar, you should use an hook similar to the one used for implementing transparent_mode in the previous pf_ring/drivers versions and use a return value for instructing the driver.
Alfredo > On 11 Feb 2015, at 21:31, Behrooz Shafiee <[email protected]> wrote: > > Hello all, > > Is there any way I can call napi_disable() inside PF_RING kernel module? I > know it requires "struct napi_struct *n" arguments which is set by the > driver. However, I am not sure how to get a pointer to that after opening > device in ring_proc_dev_open function. > > Any help is appreciated. > > Thanks, > -- > Behrooz > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
