Hi all
you are using an old version of the code as now DNA interfaces are named dnaX. Please fetch the latest code and drivers from SVN

Luca

On 11/10/2011 06:06 PM, Scott L wrote:
Chris,

Thanks for your response.  I am running pfcount as root.  I don't see
the error for "pfcount -i eth2" only for "pfcount -i dna:eth2".

In my configuration, I don't expect to receive much traffic.  I am
connecting two machines with 10 GbE NICs back-to-back.  So the only
traffic I expect to see (for now) are the pings that I am attempting
to send; so the number of received packets is on the order of what I
would expect.

=s=

On Wed, Nov 9, 2011 at 1:11 PM, Chris Collord<[email protected]>  wrote:
Hi Scott,
You'll see that error when you run pfcount without su permission (make sure
you sudo or use root).  Not sure if that's your problem or not, i'm still
figuring this out myself...
On the other hand it doesn't look like you're receiving much.  Your RX
packets are 210, whereas mine after an hour is...
eth2      Link encap:Ethernet  HWaddr 0xxxxxxxxx:4c
           inet addr:0.0.0.1  Bcast:255.255.255.255  Mask:0.0.0.0
            UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
           RX packets:172969631 errors:0 dropped:1 overruns:0 frame:0
           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:116951083144 (116.9 GB)  TX bytes:398 (398.0 B)




Date: Wed, 9 Nov 2011 12:05:55 -0700
From: [email protected]
To: [email protected]
Subject: Re: [Ntop-misc] Problems with pfcount

I've updated my PF_RING code and I'm not seeing any difference (i.e.,
pfcount -i eth2 still shows 0 packets received but ifconfig shows
packets being received). Here's what I'm seeing with the new version:

ifconfig eth2
-------------------
eth2 Link encap:Ethernet HWaddr 00:E0:ED:FF:18:08
inet addr:10.0.2.45 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:edff:feff:1808/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:210 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21420 (20.9 KiB) TX bytes:0 (0.0 b)
Memory:fd7e0000-fd800000

cat /proc/net/pfring/info
-----------------------------------
PF_RING Version : 5.1.0 ($Revision: 4972$)
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/pfring/<pid>-eth2.1
------------------------------------------------
Bound Device : eth2
Slot Version : 13 [5.1.0]
Active : 1
Breed : Non-DNA
Sampling Rate : 1
Capture Direction : RX+TX
Appl. Name : pfcount
IP Defragment : No
BPF Filtering : Disabled
# Sw Filt. Rules : 0
# Hw Filt. Rules : 0
Poll Pkt Watermark : 128
Num Poll Calls : 1503
Channel Id : -1
Cluster Id : 0
Min Num Slots : 6871
Bucket Len : 128
Slot Len : 304 [bucket+header]
Tot Memory : 2097152
Tot Packets : 0
Tot Pkt Lost : 0
Tot Insert : 0
Tot Read : 0
Insert Offset : 0
Remove Offset : 0
Tot Fwd Ok : 0
Tot Fwd Errors : 0
Num Free Slots : 6871

ethtool -i eth2
----------------------
driver: ixgbe
version: 3.3.9-DNA
firmware-version: 1.3-0
bus-info: 0000:06:00.0

ethtool eth2
----------------------
Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supports auto-negotiation: No
Advertised link modes: 10000baseT/Full
Advertised auto-negotiation: No
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: external
Auto-negotiation: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes


I also tried pfcount -i dna:eth2, but got the following error:

pfring_open error (pf_ring not loaded or perhaps you use quick mode
and have already a socket bound to dna:eth2 ?)

but:

Module Size Used by
pf_ring 335476 0
ip6t_REJECT 5856 2
nf_conntrack_ipv6 21880 2
ip6table_filter 4016 1
ip6_tables 19664 1 ip6table_filter
ipv6 298864 28 ip6t_REJECT,nf_conntrack_ipv6
dm_multipath 17304 0
uinput 9248 0
ixgbe 202760 0
amd64_edac_mod 29632 0
i2c_nforce2 9048 0
dca 6708 1 ixgbe
edac_core 43516 4 amd64_edac_mod
forcedeth 54764 0
mlx4_core 84128 0
shpchp 34636 0
serio_raw 6644 0
pata_acpi 5152 0
pata_amd 14260 0
ata_generic 5924 0
sata_nv 25228 2
radeon 507616 1
ttm 41952 1 radeon
drm_kms_helper 25360 1 radeon
drm 171168 3 radeon,ttm,drm_kms_helper
i2c_algo_bit 6020 1 radeon
i2c_core 28608 4 i2c_nforce2,radeon,drm,i2c_algo_bit

Any thoughts? Thanks for your help.

=s=

On Tue, Nov 1, 2011 at 2:34 AM, Luca Deri<[email protected]>  wrote:
Scott
please redo your tests using the code in PF_RING's SVN. From the
interface names (we now call them dnaX) i see that you are using old stuff

Luca

On Oct 31, 2011, at 9:21 PM, Scott L wrote:

I'm having problems getting pfcount to work.  I have two machines
connected back-to-back: (A) has a Silicom NIC ; and (B) has a
NetEffect 10GbE NIC.  I launch pfcount on A.  Then on B I start
pinging A.  pfcount continually reports zero packets received.

=========================
Absolute Stats: [0 pkts rcvd][0 pkts dropped]
Total Pkts=0/Dropped=0.0 %
0 pkts - 0 bytes [0.00 pkt/sec - 0.00 Mbit/sec]
=========================
Actual Stats: 0 pkts [1'000.06 ms][0.00 pkt/sec]
=========================

The only relevant log messages I see are:

ixgbe 0000:06:00.0: eth2: NIC Link is Down
ixgbe 0000:06:00.0: eth2: NIC Link is Up 10 Gbps, Flow Control: RX/TX
device eth0 entered promiscuous mode
device eth0 left promiscuous mode
[PF_RING] -->  handle_hw_filtering_rule(command=0)
[PF_RING] -->  handle_hw_filtering_rule(command=0)
[PF_RING] -->  handle_hw_filtering_rule(command=1)
[PF_RING] -->  handle_hw_filtering_rule(command=1)

As I look around I don't see the problem.  I can see the packets as
they are transmitted on B.   And the RX packet count for eth2 that is
displayed by ifconfig increments appropriately on A.  But pfcount
doesn't see them.  Anyone have any suggestions?

ifconfig -i eth2
-------------------
eth2      Link encap:Ethernet  HWaddr 00:E0:ED:FF:18:08
          inet addr:10.0.2.45  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:edff:feff:1808/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:719669104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1066541584248 (993.2 GiB)  TX bytes:0 (0.0 b)
          Memory:fd7e0000-fd800000

cat /proc/net/pfring/info
--------------------------
PF_RING Version     : 5.0.0 ($Revision: exported$)
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/pfring/<pid>-eth2.30
--------------------------------------------
Bound Device       : eth2
Slot Version       : 13 [5.0.0]
Active             : 1
Breed              : DNA
Sampling Rate      : 1
Capture Direction  : RX+TX
Appl. Name         : pfcount
IP Defragment      : No
BPF Filtering      : Disabled
# Sw Filt. Rules   : 0
# Hw Filt. Rules   : 0
Poll Pkt Watermark : 128
Num Poll Calls     : 1461
Channel Id         : 0
Num Slots          : 8192
Tot Memory         : 33685504 bytes

ethtool -i eth2
-------------------
driver: ixgbe
version: 3.3.9-DNA
firmware-version: 1.3-0
bus-info: 0000:06:00.0

ethtool eth2
----------------
Settings for eth2:
       Supported ports: [ FIBRE ]
       Supported link modes:   10000baseT/Full
       Supports auto-negotiation: No
       Advertised link modes:  10000baseT/Full
       Advertised auto-negotiation: No
       Speed: 10000Mb/s
       Duplex: Full
       Port: FIBRE
       PHYAD: 0
       Transceiver: external
       Auto-negotiation: off
       Supports Wake-on: d
       Wake-on: d
       Current message level: 0x00000007 (7)
       Link detected: yes
_______________________________________________
Ntop-misc mailing list
[email protected]
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
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

_______________________________________________
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


_______________________________________________
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