Jose
we have no Broadcom NICs and this I cannot maintain these drivers. Shall you be willing to fix these issues, please send us a code patch

Thanks Luca

On 02/09/2012 11:00 AM, Jose Vila wrote:
Hello,

I've tried to compile the same problems that other person had earlier with bnx2 driver provided by pf_ring, as per: http://listgateway.unipi.it/pipermail/ntop-misc/2011-October/002429.html

I noticed the only pf_ring-aware driver was bnx2x, and tried to port the changes made to bnx2 driver.

I think I've sorted things out, but now I get this errors when compiling the bnx2 driver. Does anyone have any clue of where the problem relies?

Thank you very much for your help.

# make
make -C /lib/modules/2.6.32-220.4.1.el6.x86_64/build SUBDIRS=/root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src modules make[1]: se ingresa al directorio `/usr/src/kernels/2.6.32-220.4.1.el6.x86_64' CC [M] /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.o /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c: En la función 'bnx2_rx_int': /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3533: error: 'struct net_device' no tiene un miembro llamado 'pfring_ptr' /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3536: error: puntero deferenciado a tipo de dato incompleto /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3536: error: 'PF_RING' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3536: error: (Cada identificador no declarado solamente se reporta una vez /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3536: error: para cada funcion en la que aparece.) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3543: error: 'fp' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3543: error: 'struct bnx2' no tiene un miembro llamado 'num_rx_queues' /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3545: error: puntero deferenciado a tipo de dato incompleto /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3545: error: 'standard_linux_path' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3546: error: puntero deferenciado a tipo de dato incompleto /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3546: error: 'queue' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3546: error: 'struct bnx2' no tiene un miembro llamado 'num_rx_queues' /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3548: error: puntero deferenciado a tipo de dato incompleto /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3548: error: 'driver2pf_ring_non_transparent' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c: En el nivel principal: /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3670: error: expected identifier or '(' before '{' token /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:3705: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c: En la función 'bnx2_setup_int_mode': /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:6885: error: 'bnx2_interrupt' no se declaró aquí (primer uso en esta función) /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c: En la función 'poll_bnx2': /root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.c:8948: error: declaración implícita de la función 'bnx2_interrupt' make[2]: *** [/root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src/bnx2.o] Error 1 make[1]: *** [_module_/root/ntopsvn/ntoptrunk/PF_RING/drivers/PF_RING_aware/2.6.x/broadcom/netxtreme2-5.2.50/bnx2-2.0.8b/src] Error 2 make[1]: se sale del directorio `/usr/src/kernels/2.6.32-220.4.1.el6.x86_64'
make: *** [default] Error 2



_______________________________________________
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

Reply via email to