{"action":"created","issue":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/371","repository_url":"https://api.github.com/repos/ntop/PF_RING","labels_url":"https://api.github.com/repos/ntop/PF_RING/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/ntop/PF_RING/issues/371/comments","events_url":"https://api.github.com/repos/ntop/PF_RING/issues/371/events","html_url":"https://github.com/ntop/PF_RING/issues/371","id":341202360,"node_id":"MDU6SXNzdWUzNDEyMDIzNjA=","number":371,"title":"PF-ring driver is queuing income packets up to 4 packets prior to releasing them to application.","user":{"login":"szarea","id":3901825,"node_id":"MDQ6VXNlcjM5MDE4MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/3901825?v=4","gravatar_id":"","url":"https://api.github.com/users/szarea","html_url":"https://github.com/szarea","followers_url":"https://api.github.com/users/szarea/followers","following_url":"https://api.github.com/users/szarea/following{/other_user}","gists_url":"https://api.github.com/users/szarea/gists{/gist_id}","starred_url":"https://api.github.com/users/szarea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szarea/subscriptions","organizations_url":"https://api.github.com/users/szarea/orgs","repos_url":"https://api.github.com/users/szarea/repos","events_url":"https://api.github.com/users/szarea/events{/privacy}","received_events_url":"https://api.github.com/users/szarea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-14T02:42:28Z","updated_at":"2018-07-15T19:58:51Z","closed_at":null,"author_association":"NONE","body":"\r\nHello,\r\n\r\nThis is problem is a show stopper for us and must be addressed in expedited manner.\r\nAny help greatly would be appreciated. \r\n\r\nProblem Definition\r\n=============\r\nPF-ring driver is queuing income packets up to 4 packets prior to releasing them to application.\r\nThis issue exists in both pfring_zc_recv_pkt_burst() and pfring_zc_recv_pkt() functions. \r\n\r\nHow to recreate\r\n============\r\nYou can try this simply by running zcount & zsend applications as follows:\r\n./zsend -c 2 -g 14 -i zc:psdeth2 -p 1 -l 125\r\n./zcount -c 3 -g 19 -i zc:psdeth3\r\n\r\n\r\nIn my case I setup my switch with port channel with my device. In this scenario the switch send a LACP packets every one second to my application and expects response.  My application receive the incoming packets in batch (four at the time) due to the queueing. Since my application does not receive the LACP packet one per second, therefor the port channel fails to establish.\r\n\r\nzcount & zsend applications output\r\n==========================\r\nzsend application output\r\n————————————-\r\n[root@psd1 examples_zc]# ./zsend -c 2 -g 14 -i zc:psdeth2 -p 1 -l 125\r\nSending packets to zc:psdeth2\r\nEstimated CPU freq: 2466502000 Hz\r\nEstimated CPU freq: 2493272000 Hz\r\nRate set to 1 pps\r\n=========================\r\nAbsolute Stats: 1 pkts - 149 bytes\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 2 pkts - 298 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 3 pkts - 447 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 4 pkts - 596 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 5 pkts - 745 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 6 pkts - 894 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 7 pkts - 1'043 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 8 pkts - 1'192 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 9 pkts - 1'341 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 10 pkts - 1'490 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 11 pkts - 1'639 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts - 1'788 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 13 pkts - 1'937 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 14 pkts - 2'086 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 15 pkts - 2'235 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 16 pkts - 2'384 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 17 pkts - 2'533 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 18 pkts - 2'682 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 19 pkts - 2'831 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 20 pkts - 2'980 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 21 pkts - 3'129 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 22 pkts - 3'278 bytes\r\nActual Stats: 1.00 pps - 0.00 Gbps [149 bytes / 1.0 sec]\r\n=========================\r\n\r\n^CLeaving...\r\n=========================\r\nAbsolute Stats: 23 pkts - 3'427 bytes\r\nActual Stats: 1.17 pps - 0.00 Gbps [149 bytes / 0.9 sec]\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 23 pkts - 3'427 bytes\r\nActual Stats: 0.00 pps - 0.00 Gbps [0 bytes / 1.0 sec]\r\n=========================\r\n\r\n==========================================================\r\n==========================================================\r\n==========================================================\r\nzcount application output\r\n—————————————\r\n[root@psd1 examples_zc]# ./zcount -c 3 -g 19 -i zc:psdeth3\r\n=========================\r\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes.               <<<—— First second       \r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes                <<<—— Second second\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes                <<<—— Third second\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 4 pkts (0 drops) - 596 bytes             <<<—— Fourth second 4 packets\r\nActual Stats: 4.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 4 pkts (0 drops) - 596 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 4 pkts (0 drops) - 596 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 4 pkts (0 drops) - 596 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 8 pkts (0 drops) - 1'192 bytes\r\nActual Stats: 4.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 8 pkts (0 drops) - 1'192 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 8 pkts (0 drops) - 1'192 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 8 pkts (0 drops) - 1'192 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts (0 drops) - 1'788 bytes\r\nActual Stats: 4.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts (0 drops) - 1'788 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts (0 drops) - 1'788 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts (0 drops) - 1'788 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 12 pkts (0 drops) - 1'788 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 16 pkts (0 drops) - 2'384 bytes\r\nActual Stats: 4.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 16 pkts (0 drops) - 2'384 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 16 pkts (0 drops) - 2'384 bytes\r\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\r\n=========================\r\n\r\n\r\n\r\nEnvironment \r\n==========\r\n\tOS\r\n\t===\r\n\tLinux 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n\tDriver\r\n\t=====\r\n\ti40e\r\n\r\n\tApplication\r\n\t========\r\n\tzcount - (C) 2014 ntop.org\r\n\tUsing PFRING_ZC v.7.1.0.171107\r\n\r\n\r\nThank you,\r\nSteven"},"comment":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/comments/405114272","html_url":"https://github.com/ntop/PF_RING/issues/371#issuecomment-405114272","issue_url":"https://api.github.com/repos/ntop/PF_RING/issues/371","id":405114272,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTExNDI3Mg==","user":{"login":"szarea","id":3901825,"node_id":"MDQ6VXNlcjM5MDE4MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/3901825?v=4","gravatar_id":"","url":"https://api.github.com/users/szarea","html_url":"https://github.com/szarea","followers_url":"https://api.github.com/users/szarea/followers","following_url":"https://api.github.com/users/szarea/following{/other_user}","gists_url":"https://api.github.com/users/szarea/gists{/gist_id}","starred_url":"https://api.github.com/users/szarea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szarea/subscriptions","organizations_url":"https://api.github.com/users/szarea/orgs","repos_url":"https://api.github.com/users/szarea/repos","events_url":"https://api.github.com/users/szarea/events{/privacy}","received_events_url":"https://api.github.com/users/szarea/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T19:58:51Z","updated_at":"2018-07-15T19:58:51Z","author_association":"NONE","body":"the provided below data is gather while I'm send and receiving data:\r\n\r\nroot@psd1 ~]# cat /proc/net/pf_ring/info\r\nPF_RING Version          : 7.2.0 ( s_2_1:453347080176cfce9cbe7a09d567fc39d45697de)\r\nTotal rings              : 4\r\n\r\nStandard (non ZC) Options\r\nRing slots               : 4096\r\nSlot version             : 17\r\nCapture TX               : Yes [RX+TX]\r\nIP Defragment            : No\r\nSocket Mode              : Standard\r\nCluster Fragment Queue   : 0\r\nCluster Fragment Discard : 0\r\n[root@psd1 ~]# cat /proc/net/pf_ring/dev/psdeth3/info\r\nName:         psdeth3\r\nIndex:        19\r\nAddress:      68:05:CA:30:67:69\r\nPolling Mode: NAPI/ZC\r\nType:         Ethernet\r\nFamily:       Intel i40e\r\nTX Queues:    1\r\nRX Queues:    1\r\nNum RX Slots: 4096\r\nNum TX Slots: 4096\r\n[root@psd1 ~]# ethtool -i psdeth3\r\ndriver: i40e\r\nversion: 2.4.6\r\nfirmware-version: 6.01 0x800034a4 1.1747.0\r\nexpansion-rom-version:\r\nbus-info: 0000:81:00.1\r\nsupports-statistics: yes\r\nsupports-test: yes\r\nsupports-eeprom-access: yes\r\nsupports-register-dump: yes\r\nsupports-priv-flags: yes"}}
{"actor":{"display_login":"szarea"}}