I checked everything again ,
Step 1) Before start pfring_open
ethtool -S
NIC statistics:
rx_packets: 0
tx_packets: 29
rx_bytes: 0
tx_bytes: 5686
rx_errors: 0
tx_errors: 0
rx_dropped: 0
tx_dropped: 0
multicast: 0
collisions: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_fifo_errors: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
rx_pkts_nic: 0
tx_pkts_nic: 29
rx_bytes_nic: 0
tx_bytes_nic: 5686
lsc_int: 2
.... all other ZERO
Step 2) Get data
pfring_open
pfring_loop
....
pfring_breakloop
pfring_stats ( recv=6786649 drop=0 )
pfring_close
Step 3) ethtool -S
NIC statistics:
rx_packets: 6786649
tx_packets: 29
rx_bytes: 434870078
tx_bytes: 5686
rx_errors: 0
tx_errors: 0
rx_dropped: 0
tx_dropped: 0
multicast: 0
collisions: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_fifo_errors: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
rx_pkts_nic: 6786649
tx_pkts_nic: 29
rx_bytes_nic: 434870078
tx_bytes_nic: 5686
lsc_int: 2
Everything looks correct , I must back to FPGA ;)
M
Max
did you check with ethtool if you have some drops in the NIC? And, how do you
know that the packet sent have been *really* sent out?
Luca
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc