{"action":"created","issue":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/15","repository_url":"https://api.github.com/repos/ntop/PF_RING","labels_url":"https://api.github.com/repos/ntop/PF_RING/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ntop/PF_RING/issues/15/comments","events_url":"https://api.github.com/repos/ntop/PF_RING/issues/15/events","html_url":"https://github.com/ntop/PF_RING/issues/15","id":88744327,"node_id":"MDU6SXNzdWU4ODc0NDMyNw==","number":15,"title":"PF_RING ZC: ixgbe virtual function support","user":{"login":"pavel-odintsov","id":2744166,"node_id":"MDQ6VXNlcjI3NDQxNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/2744166?v=4","gravatar_id":"","url":"https://api.github.com/users/pavel-odintsov","html_url":"https://github.com/pavel-odintsov","followers_url":"https://api.github.com/users/pavel-odintsov/followers","following_url":"https://api.github.com/users/pavel-odintsov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-odintsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-odintsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-odintsov/subscriptions","organizations_url":"https://api.github.com/users/pavel-odintsov/orgs","repos_url":"https://api.github.com/users/pavel-odintsov/repos","events_url":"https://api.github.com/users/pavel-odintsov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-odintsov/received_events","type":"User","site_admin":false},"labels":[{"id":207410145,"node_id":"MDU6TGFiZWwyMDc0MTAxNDU=","url":"https://api.github.com/repos/ntop/PF_RING/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2015-06-16T14:32:00Z","updated_at":"2018-12-07T15:40:59Z","closed_at":"2018-11-26T22:00:03Z","author_association":"NONE","body":"Hello, folks!\n\nI have multiple virtual functions with ixgbe.\n\nI have changed following lines in load_driver.sh:\n\n``` path\n-insmod ./ixgbe.ko RSS=1,1,1,1\n+insmod ./ixgbe.ko RSS=1,1,1,1 max_vfs=2,2\n```\n\nThus, I tuned virtual functions and set mac's for they:\n\n``` bash\nip link set eth6 vf 0 mac 90:e2:ba:55:aa:bb\nip link set eth6 vf 1 mac 90:e2:ba:55:bb:cc\n```\n\nAnd apply changes:\n\n``` bash\nrmmod ixgbevf\nmodprobe ixgbevf\n```\n\nThus, I have single physical NIC and two virtual NIC's:\n\n``` bash\n21: eth6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\n    link/ether 90:e2:ba:4a:d8:e8 brd ff:ff:ff:ff:ff:ff\n    vf 0 MAC 90:e2:ba:55:aa:bb, spoof checking on, link-state auto\n    vf 1 MAC 90:e2:ba:55:bb:cc, spoof checking on, link-state auto\n29: eth10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\n    link/ether 90:e2:ba:55:aa:bb brd ff:ff:ff:ff:ff:ff\n30: eth11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\n    link/ether 90:e2:ba:55:bb:cc brd ff:ff:ff:ff:ff:ff\n```\n\nAnd I have enabled all NICs:\n\n``` bash\nifconfig eth6 up\nifconfig eth10 up\nifconfig eth11 up\n```\n\nAnd all nic's become ready:\n\n``` bash\nroot@filteredclient /usr/src/PF_RING-6.0.3/userland/examples_zc # ethtool eth10\nSettings for eth10:\n    Supported ports: [ ]\n    Supported link modes:   10000baseT/Full \n    Supported pause frame use: No\n    Supports auto-negotiation: No\n    Advertised link modes:  Not reported\n    Advertised pause frame use: No\n    Advertised auto-negotiation: No\n    Speed: 10000Mb/s\n    Duplex: Full\n    Port: Other\n    PHYAD: 0\n    Transceiver: Unknown!\n    Auto-negotiation: off\n    Current message level: 0x00000007 (7)\n                   drv probe link\n    Link detected: yes\nroot@filteredclient /usr/src/PF_RING-6.0.3/userland/examples_zc # ethtool eth11\nSettings for eth11:\n    Supported ports: [ ]\n    Supported link modes:   10000baseT/Full \n    Supported pause frame use: No\n    Supports auto-negotiation: No\n    Advertised link modes:  Not reported\n    Advertised pause frame use: No\n    Advertised auto-negotiation: No\n    Speed: 10000Mb/s\n    Duplex: Full\n    Port: Other\n    PHYAD: 0\n    Transceiver: Unknown!\n    Auto-negotiation: off\n    Current message level: 0x00000007 (7)\n                   drv probe link\n    Link detected: yes\nroot@filteredclient /usr/src/PF_RING-6.0.3/userland/examples_zc # ethtool eth6\nSettings for eth6:\n    Supported ports: [ FIBRE ]\n    Supported link modes:   1000baseT/Full \n                            10000baseT/Full \n    Supported pause frame use: No\n    Supports auto-negotiation: Yes\n    Advertised link modes:  1000baseT/Full \n                            10000baseT/Full \n    Advertised pause frame use: Symmetric\n    Advertised auto-negotiation: Yes\n    Speed: 10000Mb/s\n    Duplex: Full\n    Port: FIBRE\n    PHYAD: 0\n    Transceiver: external\n    Auto-negotiation: on\n    Supports Wake-on: d\n    Wake-on: d\n    Current message level: 0x00000007 (7)\n                   drv probe link\n    Link detected: yes\n```\n\nWell! I could run PF_RING ZC.\n\nIt works perfectly for physical interface:\n\n``` bash\n./zcount -c 0 -i zc:eth6\n#########################################################################\n# ERROR: You do not seem to have a valid PF_RING ZC license 6.0.3.150330 for eth6 [Intel 10 Gbit ixgbe 82599-based]\n# ERROR: Please get one at http://shop.ntop.org/.\n#########################################################################\n# We're now working in demo mode with packet capture and          \n# transmission limited to 5 minutes\n#########################################################################\n#########################################################################\n# ERROR: You do not seem to have a valid PF_RING ZC license 6.0.3.150330 for eth6 [Intel 10 Gbit ixgbe 82599-based]\n# ERROR: Please get one at http://shop.ntop.org/.\n#########################################################################\n=========================\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes\n=========================\n\n^CLeaving...\n=========================\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\n=========================\n\n=========================\nAbsolute Stats: 0 pkts (0 drops) - 0 bytes\nActual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\n```\n\nBut for virtual functions it did not work at all:\n\n``` bash\n./zcount -c 0 -i zc:eth10\npfring_zc_open_device error [Socket operation on non-socket] Please check that zc:eth10 is up and not already used\n\nroot@filteredclient /usr/src/PF_RING-6.0.3/userland/examples_zc # ./zcount -c 0 -i zc:eth11\npfring_zc_open_device error [Socket operation on non-socket] Please check that zc:eth11 is up and not already used\n```\n\nCould you add support for PF_RING which run on top of virtual functions? \n"},"comment":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/comments/445271283","html_url":"https://github.com/ntop/PF_RING/issues/15#issuecomment-445271283","issue_url":"https://api.github.com/repos/ntop/PF_RING/issues/15","id":445271283,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTI3MTI4Mw==","user":{"login":"jcmathews","id":1107531,"node_id":"MDQ6VXNlcjExMDc1MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1107531?v=4","gravatar_id":"","url":"https://api.github.com/users/jcmathews","html_url":"https://github.com/jcmathews","followers_url":"https://api.github.com/users/jcmathews/followers","following_url":"https://api.github.com/users/jcmathews/following{/other_user}","gists_url":"https://api.github.com/users/jcmathews/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmathews/subscriptions","organizations_url":"https://api.github.com/users/jcmathews/orgs","repos_url":"https://api.github.com/users/jcmathews/repos","events_url":"https://api.github.com/users/jcmathews/events{/privacy}","received_events_url":"https://api.github.com/users/jcmathews/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T15:40:59Z","updated_at":"2018-12-07T15:40:59Z","author_association":"NONE","body":"\r\nI got some errors as follows\r\n\r\nWARNING: \"ixgbevf_hv_set_rar_vf\" [/root/PF_RING/drivers/intel/ixgbevf/ixgbevf-4.5.1-zc/src/ixgbevf.ko] undefined!\r\nWARNING: \"ixgbevf_hv_reset_hw_vf\" [/root/PF_RING/drivers/intel/ixgbevf/ixgbevf-4.5.1-zc/src/ixgbevf.ko] undefined!\r\n \r\nKernel Version Used : 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux\r\nRHEL7"}}
{"actor":{"display_login":"jcmathews"}}