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

Mailing List Archive: NTop: Misc

pf_ring quick_mode not being set?

 

 

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


suroot at gmail

Feb 10, 2012, 12:38 PM

Post #1 of 3 (646 views)
Permalink
pf_ring quick_mode not being set?

Hi.

I can't get two simultaneous daemons to listen on the same interface.
After reading it seems like this is usually due to quick_mode being
enabled but as far as I can tell I'm loading the kernel module with
quick_mode off. Please help!

# uname -a
Linux 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux

I'm loading the module as follows.
# insmod /lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
quick_mode=0

# modinfo pf_ring
filename: /lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
alias: net-pf-27
description: Packet capture acceleration and analysis
author: Luca Deri <deri [at] ntop>
license: GPL
srcversion: 0702EEDDBCDB46025A6CC28
depends:
vermagic: 3.0.0-12-generic SMP mod_unload modversions
parm: min_num_slots:Min number of ring slots (uint)
parm: transparent_mode:0=standard Linux,
1=direct2pfring+transparent, 2=direct2pfring+non transparentFor 1 and
2 you need to use a PF_RING aware driver (uint)
parm: enable_debug:Set to 1 to enable PF_RING debug tracing
into the syslog (uint)
parm: enable_tx_capture:Set to 1 to capture outgoing packets (uint)
parm: enable_ip_defrag:Set to 1 to enable IP
defragmentation(only rx traffic is defragmentead) (uint)
parm: quick_mode:Set to 1 to run at full speed but with upto
one socket per interface (uint)

# cat /proc/net/pf_ring/info
PF_RING Version : 5.2.3 ($Revision: 5164$)
Ring slots : 4096
Slot version : 13
Capture TX : Yes [RX+TX]
IP Defragment : No
Socket Mode : Standard
Transparent mode : Yes (mode 0)
Total rings : 1
Total plugins : 0

# cat /proc/net/pf_ring/dev/eth2/info
Name: eth2
Index: 2
Address: 68:05:CA:01:90:18
Polling Mode: NAPI/TNAPI
Type: Ethernet
Family: Standard NIC
# Bound Sockets: 1
Max # TX Queues: 1
# Used RX Queues: 1

When I have one pfcount session already running, then I can't start another one:

# ./pfcount -i eth2
pfring_set_channel_id() failed: -1
pfring_open error [Invalid argument] (pf_ring not loaded or perhaps
you use quick mode and have already a socket bound to eth2 ?)


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


suroot at gmail

Feb 12, 2012, 10:21 AM

Post #2 of 3 (610 views)
Permalink
Re: pf_ring quick_mode not being set? [In reply to]

Please can someone help?

On Friday, February 10, 2012, 0100 <suroot [at] gmail> wrote:
> Hi.
>
> I can't get two simultaneous daemons to listen on the same interface.
> After reading it seems like this is usually due to quick_mode being
> enabled but as far as I can tell I'm loading the kernel module with
> quick_mode off. Please help!
>
> # uname -a
> Linux 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
> x86_64 x86_64 x86_64 GNU/Linux
>
> I'm loading the module as follows.
> # insmod /lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
> quick_mode=0
>
> # modinfo pf_ring
> filename:
/lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
> alias: net-pf-27
> description: Packet capture acceleration and analysis
> author: Luca Deri <deri [at] ntop>
> license: GPL
> srcversion: 0702EEDDBCDB46025A6CC28
> depends:
> vermagic: 3.0.0-12-generic SMP mod_unload modversions
> parm: min_num_slots:Min number of ring slots (uint)
> parm: transparent_mode:0=standard Linux,
> 1=direct2pfring+transparent, 2=direct2pfring+non transparentFor 1 and
> 2 you need to use a PF_RING aware driver (uint)
> parm: enable_debug:Set to 1 to enable PF_RING debug tracing
> into the syslog (uint)
> parm: enable_tx_capture:Set to 1 to capture outgoing packets
(uint)
> parm: enable_ip_defrag:Set to 1 to enable IP
> defragmentation(only rx traffic is defragmentead) (uint)
> parm: quick_mode:Set to 1 to run at full speed but with upto
> one socket per interface (uint)
>
> # cat /proc/net/pf_ring/info
> PF_RING Version : 5.2.3 ($Revision: 5164$)
> Ring slots : 4096
> Slot version : 13
> Capture TX : Yes [RX+TX]
> IP Defragment : No
> Socket Mode : Standard
> Transparent mode : Yes (mode 0)
> Total rings : 1
> Total plugins : 0
>
> # cat /proc/net/pf_ring/dev/eth2/info
> Name: eth2
> Index: 2
> Address: 68:05:CA:01:90:18
> Polling Mode: NAPI/TNAPI
> Type: Ethernet
> Family: Standard NIC
> # Bound Sockets: 1
> Max # TX Queues: 1
> # Used RX Queues: 1
>
> When I have one pfcount session already running, then I can't start
another one:
>
> # ./pfcount -i eth2
> pfring_set_channel_id() failed: -1
> pfring_open error [Invalid argument] (pf_ring not loaded or perhaps
> you use quick mode and have already a socket bound to eth2 ?)
>
>
> Thanks!
>


cardigliano at ntop

Feb 12, 2012, 10:26 AM

Post #3 of 3 (605 views)
Permalink
Re: pf_ring quick_mode not being set? [In reply to]

0100
please update to the latest SVN rev

Regards
Alfredo


On Feb 12, 2012, at 7:21 PM, 0100 wrote:

> Please can someone help?
>
> On Friday, February 10, 2012, 0100 <suroot [at] gmail> wrote:
> > Hi.
> >
> > I can't get two simultaneous daemons to listen on the same interface.
> > After reading it seems like this is usually due to quick_mode being
> > enabled but as far as I can tell I'm loading the kernel module with
> > quick_mode off. Please help!
> >
> > # uname -a
> > Linux 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
> > x86_64 x86_64 x86_64 GNU/Linux
> >
> > I'm loading the module as follows.
> > # insmod /lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
> > quick_mode=0
> >
> > # modinfo pf_ring
> > filename: /lib/modules/3.0.0-12-generic/kernel/net/pf_ring/pf_ring.ko
> > alias: net-pf-27
> > description: Packet capture acceleration and analysis
> > author: Luca Deri <deri [at] ntop>
> > license: GPL
> > srcversion: 0702EEDDBCDB46025A6CC28
> > depends:
> > vermagic: 3.0.0-12-generic SMP mod_unload modversions
> > parm: min_num_slots:Min number of ring slots (uint)
> > parm: transparent_mode:0=standard Linux,
> > 1=direct2pfring+transparent, 2=direct2pfring+non transparentFor 1 and
> > 2 you need to use a PF_RING aware driver (uint)
> > parm: enable_debug:Set to 1 to enable PF_RING debug tracing
> > into the syslog (uint)
> > parm: enable_tx_capture:Set to 1 to capture outgoing packets (uint)
> > parm: enable_ip_defrag:Set to 1 to enable IP
> > defragmentation(only rx traffic is defragmentead) (uint)
> > parm: quick_mode:Set to 1 to run at full speed but with upto
> > one socket per interface (uint)
> >
> > # cat /proc/net/pf_ring/info
> > PF_RING Version : 5.2.3 ($Revision: 5164$)
> > Ring slots : 4096
> > Slot version : 13
> > Capture TX : Yes [RX+TX]
> > IP Defragment : No
> > Socket Mode : Standard
> > Transparent mode : Yes (mode 0)
> > Total rings : 1
> > Total plugins : 0
> >
> > # cat /proc/net/pf_ring/dev/eth2/info
> > Name: eth2
> > Index: 2
> > Address: 68:05:CA:01:90:18
> > Polling Mode: NAPI/TNAPI
> > Type: Ethernet
> > Family: Standard NIC
> > # Bound Sockets: 1
> > Max # TX Queues: 1
> > # Used RX Queues: 1
> >
> > When I have one pfcount session already running, then I can't start another one:
> >
> > # ./pfcount -i eth2
> > pfring_set_channel_id() failed: -1
> > pfring_open error [Invalid argument] (pf_ring not loaded or perhaps
> > you use quick mode and have already a socket bound to eth2 ?)
> >
> >
> > Thanks!
> > _______________________________________________
> 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.