Monday, May 21, 2012

Compiling PF_RING Intel Drivers

I've been meaning to play around with PF_RING but never really managed to get its patched drivers compiled. I'm running Arch Linux which has a 3.3 kernel at the moment. A while ago Luca Deri himself mentioned in a bug report of mine that the drivers are only meant to be compiled on 2.6.x kernels. So today I installed a Debian Squeeze which has a 2.6.32 kernel in VirtualBox and tried compiling the Intel drivers in there. Again I got an error but this time it was a different error message. Something like this:

error: ‘struct dev_pm_info’ has no member named ‘runtime_auto’
 
I found this thread that suggested making with make CFLAGS_EXTRA=-DDISABLE_PM. I tried the suggestion and it worked.

Unfortunately, the only PF_RING aware NIC I currently have access to is a Broadcom-based one. I haven't managed to compile those drivers yet.