Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

Compiling TNAPI/ixgbe fails

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


chris.hellkvist at googlemail

Apr 26, 2012, 7:32 AM

Post #1 of 6 (695 views)
Permalink
Compiling TNAPI/ixgbe fails

Hi,

seems i have no luck installing TNAPI for ixgbe on a fresh Ubuntu
11.10 machine.
PF_RING (module & libaries) are installed and running on the machine:
[11749.154657] [PF_RING] Welcome to PF_RING 5.3.1 ($Revision: 5340$)

My install attempt of TNAPI fails with this:
chris [at] isrt-34-t:~/ixgbe-3.6.7-TNAPIv2/src$ make
make -C /lib/modules/3.0.0-17-generic/build
SUBDIRS=/home/dth/ixgbe-3.6.7-TNAPIv2/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
CC [M] /home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe_main.o
In file included from /home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe_main.c:55:0:
/home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe.h:69:57: fatal error:
../../../../../PF_RING/kernel/linux/pf_ring.h: No such file or
directory
compilation terminated.
make[2]: *** [/home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe_main.o] Error 1
make[1]: *** [_module_/home/dth/ixgbe-3.6.7-TNAPIv2/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-17-generic'
make: *** [default] Error 2

Any ideas?

Thanks,
Chris
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


c.d.wakelin at reading

Apr 26, 2012, 7:46 AM

Post #2 of 6 (673 views)
Permalink
Re: Compiling TNAPI/ixgbe fails [In reply to]

On 26/04/12 15:32, Chris Hellkvist wrote:
> Hi,
>
> seems i have no luck installing TNAPI for ixgbe on a fresh Ubuntu
> 11.10 machine.
> PF_RING (module & libaries) are installed and running on the machine:
> [11749.154657] [PF_RING] Welcome to PF_RING 5.3.1 ($Revision: 5340$)
>
> My install attempt of TNAPI fails with this:
> chris [at] isrt-34-t:~/ixgbe-3.6.7-TNAPIv2/src$ make
> make -C /lib/modules/3.0.0-17-generic/build
> SUBDIRS=/home/dth/ixgbe-3.6.7-TNAPIv2/src modules
> make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
> CC [M] /home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe_main.o
> In file included from /home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe_main.c:55:0:
> /home/dth/ixgbe-3.6.7-TNAPIv2/src/ixgbe.h:69:57: fatal error:

> ../../../../../PF_RING/kernel/linux/pf_ring.h: No such file or

You'll need the PF_RING source tree to be in the right place for that
path to work. You could just copy the pf_ring.h over and remove the path
in ixgbe.h (I do this when compiling with dkms); otherwise try moving
the ixgbe-3.6.7-TNAPIv2 source tree to say PF_RING/drivers/TNAPI/ (with
PF_RING/, without version number, being the source tree for PF_RING).

Best Wishes,
Chris

--
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin, c.d.wakelin [at] reading
IT Services Centre, The University of Reading, Tel: +44 (0)118 378 2908
Whiteknights, Reading, RG6 6AF, UK Fax: +44 (0)118 975 3094
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


chris.hellkvist at googlemail

Apr 26, 2012, 8:05 AM

Post #3 of 6 (678 views)
Permalink
Re: Compiling TNAPI/ixgbe fails [In reply to]

Hi Chris,

Am 26. April 2012 16:46 schrieb Chris Wakelin <c.d.wakelin [at] reading>:
> You'll need the PF_RING source tree to be in the right place for that
> path to work. You could just copy the pf_ring.h over and remove the path
> in ixgbe.h (I do this when compiling with dkms); otherwise try moving
> the ixgbe-3.6.7-TNAPIv2 source tree to say PF_RING/drivers/TNAPI/  (with
> PF_RING/, without version number, being the source tree for PF_RING).

thanks for this, seems like the hard-coded path n ixgbe.h is a bit weird.
I moved pf_ring.h into the src directory and changed ixgbe.h to point
to the new location . Now it's able to include pf_ring.h, but still
fails:

chris [at] isrt-34-t:~/ixgbe-3.6.7-TNAPIv2/src$ make
make -C /lib/modules/3.0.0-17-generic/build
SUBDIRS=/home/dth/PF_RING/drivers/TNAPI/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
CC [M] /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o
In file included from /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.c:146:0:
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c: In function
‘tnapi_ixgbe_clean_rx_irq’:
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: warning:
passing argument 4 of ‘hook->ring_handler’ makes pointer from integer
without a cast [enabled by default]
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: note:
expected ‘u_int8_t *’ but argument is of type ‘u8’
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: error: too
few arguments to function ‘hook->ring_handler’
make[2]: *** [/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o] Error 1
make[1]: *** [_module_/home/dth/PF_RING/drivers/TNAPI/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-17-generic'
make: *** [default] Error 2

Maybe a point for Luca ;-).

Thanks,
Chris
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


cardigliano at ntop

Apr 26, 2012, 8:27 AM

Post #4 of 6 (666 views)
Permalink
Re: Compiling TNAPI/ixgbe fails [In reply to]

Chris
you are using an old driver (we are currently supporting ixgbe-3.7.17-TNAPIv2).
Actually we are going to release an update of that driver today, just wait a few hours :-)

Regards
Alfredo

On Apr 26, 2012, at 5:05 PM, Chris Hellkvist wrote:

> Hi Chris,
>
> Am 26. April 2012 16:46 schrieb Chris Wakelin <c.d.wakelin [at] reading>:
>> You'll need the PF_RING source tree to be in the right place for that
>> path to work. You could just copy the pf_ring.h over and remove the path
>> in ixgbe.h (I do this when compiling with dkms); otherwise try moving
>> the ixgbe-3.6.7-TNAPIv2 source tree to say PF_RING/drivers/TNAPI/ (with
>> PF_RING/, without version number, being the source tree for PF_RING).
>
> thanks for this, seems like the hard-coded path n ixgbe.h is a bit weird.
> I moved pf_ring.h into the src directory and changed ixgbe.h to point
> to the new location . Now it's able to include pf_ring.h, but still
> fails:
>
> chris [at] isrt-34-t:~/ixgbe-3.6.7-TNAPIv2/src$ make
> make -C /lib/modules/3.0.0-17-generic/build
> SUBDIRS=/home/dth/PF_RING/drivers/TNAPI/src modules
> make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
> CC [M] /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o
> In file included from /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.c:146:0:
> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c: In function
> ‘tnapi_ixgbe_clean_rx_irq’:
> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: warning:
> passing argument 4 of ‘hook->ring_handler’ makes pointer from integer
> without a cast [enabled by default]
> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: note:
> expected ‘u_int8_t *’ but argument is of type ‘u8’
> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: error: too
> few arguments to function ‘hook->ring_handler’
> make[2]: *** [/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o] Error 1
> make[1]: *** [_module_/home/dth/PF_RING/drivers/TNAPI/src] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-17-generic'
> make: *** [default] Error 2
>
> Maybe a point for Luca ;-).
>
> Thanks,
> Chris
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


deri at ntop

Apr 26, 2012, 2:27 PM

Post #5 of 6 (681 views)
Permalink
Re: Compiling TNAPI/ixgbe fails [In reply to]

Chris
the release is ready to download: you can get it from the same URL you used to download TNAPI previously.

Regards Luca and Alfredo

On Apr 26, 2012, at 5:27 PM, Alfredo Cardigliano wrote:

> Chris
> you are using an old driver (we are currently supporting ixgbe-3.7.17-TNAPIv2).
> Actually we are going to release an update of that driver today, just wait a few hours :-)
>
> Regards
> Alfredo
>
> On Apr 26, 2012, at 5:05 PM, Chris Hellkvist wrote:
>
>> Hi Chris,
>>
>> Am 26. April 2012 16:46 schrieb Chris Wakelin <c.d.wakelin [at] reading>:
>>> You'll need the PF_RING source tree to be in the right place for that
>>> path to work. You could just copy the pf_ring.h over and remove the path
>>> in ixgbe.h (I do this when compiling with dkms); otherwise try moving
>>> the ixgbe-3.6.7-TNAPIv2 source tree to say PF_RING/drivers/TNAPI/ (with
>>> PF_RING/, without version number, being the source tree for PF_RING).
>>
>> thanks for this, seems like the hard-coded path n ixgbe.h is a bit weird.
>> I moved pf_ring.h into the src directory and changed ixgbe.h to point
>> to the new location . Now it's able to include pf_ring.h, but still
>> fails:
>>
>> chris [at] isrt-34-t:~/ixgbe-3.6.7-TNAPIv2/src$ make
>> make -C /lib/modules/3.0.0-17-generic/build
>> SUBDIRS=/home/dth/PF_RING/drivers/TNAPI/src modules
>> make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
>> CC [M] /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o
>> In file included from /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.c:146:0:
>> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c: In function
>> ‘tnapi_ixgbe_clean_rx_irq’:
>> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: warning:
>> passing argument 4 of ‘hook->ring_handler’ makes pointer from integer
>> without a cast [enabled by default]
>> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: note:
>> expected ‘u_int8_t *’ but argument is of type ‘u8’
>> /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: error: too
>> few arguments to function ‘hook->ring_handler’
>> make[2]: *** [/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o] Error 1
>> make[1]: *** [_module_/home/dth/PF_RING/drivers/TNAPI/src] Error 2
>> make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-17-generic'
>> make: *** [default] Error 2
>>
>> Maybe a point for Luca ;-).
>>
>> Thanks,
>> Chris
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc [at] listgateway
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

---
We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


chris.hellkvist at googlemail

May 2, 2012, 2:52 AM

Post #6 of 6 (635 views)
Permalink
Re: Compiling TNAPI/ixgbe fails [In reply to]

Hi Luca & list,

2012/4/26 Luca Deri <deri [at] ntop>:
> Chris
> the release is ready to download: you can get it from the same URL you used to download TNAPI previously.

thanks for this, the issue has been resolved with this latest driver.

Thanks,
Chris
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.