From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-181.mimecast.com (us-smtp-delivery-181.mimecast.com [216.205.24.181]) by dpdk.org (Postfix) with ESMTP id 4684D2583 for ; Tue, 29 May 2018 12:56:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=SonusNetworks.onmicrosoft.com; s=selector1-rbbn-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a9KRAQAzsxL/MUXfWyRBwDRCdG5qbv3h5jrn3LKncFg=; b=bC6zmM+iWR45jDSfL0jVKGQ0RjhZvw9FAOUHRa7eHFKpwuTjKQZqMxlHxLYSom7+KlsFKXXLPHIL/g7mQ0V1iXWunnJC6kMg+6F4guYLOZWhXN6t6sIFkIsWsfwb8xY/w5kkI4d+ganixMhfFry5rao+eTZ5322FmCuHRBfUPzw= Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01lp0180.outbound.protection.outlook.com [216.32.180.180]) (Using TLS) by us-smtp-1.mimecast.com with ESMTP id us-mta-93-HEECDCp8MOCSnErKEUcsug-1; Tue, 29 May 2018 06:56:43 -0400 Received: from CY4PR03MB2757.namprd03.prod.outlook.com (10.173.38.11) by CY4PR03MB3366.namprd03.prod.outlook.com (10.171.244.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Tue, 29 May 2018 10:56:40 +0000 Received: from CY4PR03MB2757.namprd03.prod.outlook.com ([fe80::6c28:b627:9132:a9bd]) by CY4PR03MB2757.namprd03.prod.outlook.com ([fe80::6c28:b627:9132:a9bd%3]) with mapi id 15.20.0820.010; Tue, 29 May 2018 10:56:40 +0000 From: "Giridharan, Ganesan" To: "users@dpdk.org" Thread-Topic: Fetching packets from NIC on Hyper-V using patch v9 & Kernel 4.16.11 Thread-Index: AdP3O7QnKaD3LlOJTtKffoI5DbzRfw== Date: Tue, 29 May 2018 10:56:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [12.171.83.98] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR03MB3366; 7:gokkeDnONCbtRCDetnlnmXJJZKBvSMukwtaebbxuILyxBlnHg5h8B//mCbJDijc66OWfLDkxITEVswAS6oqO7DfJqVDH3/c4t4mH6F3K1JzrecURbyBicBCy/MQJfgiVAjN1ZjB4rNqTryfWcZJ7T4dGowPNHjKPbi8jSTKxJiWL8aOH/9fEyXeFqhFh2/qMNhL6E7Nw2Qoa/sSiMkQ0tw2N7FQL+02Sr8sIv60MUQ2QFgYL4E1BMHi1NGQO5Iv2; 20:zDGY1vJg5S5t4ButImeVFCKuEYvsrP9bdY7w48/eczt3Wo16oJOnmtHtAhAzN+cPSVoSssapVneKjzYZifRd+dNpPMV1F6b7Z9km05Bkw2WiX/a5SbISIC+HBZHokjHPDN3ct0kuBVdHqthRszIGU+w9HVA7wnmAKRtYPafgwg4= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR03MB3366; x-ms-traffictypediagnostic: CY4PR03MB3366: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155)(21532816269658); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:CY4PR03MB3366; BCL:0; PCL:0; RULEID:; SRVR:CY4PR03MB3366; x-forefront-prvs: 0687389FB0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39380400002)(39850400004)(396003)(51234002)(199004)(189003)(6916009)(102836004)(26005)(59450400001)(25786009)(14454004)(2351001)(5250100002)(2501003)(8676002)(6506007)(105586002)(86362001)(575784001)(106356001)(55016002)(7736002)(5640700003)(316002)(5660300001)(1730700003)(6436002)(2900100001)(97736004)(7696005)(476003)(68736007)(3660700001)(486006)(66066001)(53936002)(478600001)(33656002)(81156014)(53946003)(74316002)(186003)(5630700001)(81166006)(6116002)(3846002)(8936002)(9686003)(790700001)(2906002)(54896002)(3280700002)(99286004)(6306002)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3366; H:CY4PR03MB2757.namprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-microsoft-antispam-message-info: w2bajZdFDt34uqPncIdWdqzMxNbTQIbeWx2qJFhq6BuRiNuwx44gpAF+L2drGLa9Y8yfselFLqtQYYYnRBUOImxbkFccFUnWmWd7RRo8fzJBhHyNlypVCP4lJtzAFMUpMAH46n0JJaJiam8DUB0dkSAzTb+thUnbAdghKVo8haFyDKwRegmXQXi6tKXig3LBLbj2GK2v9KG9Pq7kAqrYEg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5f418a72-9057-4070-2442-08d5c552db8e X-OriginatorOrg: rbbn.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f418a72-9057-4070-2442-08d5c552db8e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2018 10:56:40.0896 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB3366 X-MC-Unique: HEECDCp8MOCSnErKEUcsug-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Fetching packets from NIC on Hyper-V using patch v9 & Kernel 4.16.11 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2018 10:56:45 -0000 Good morning. Environment: I am using "testpmd" to verify packets receive/transmit "io" mode on Linux = guest under Hyper-V on a WS2016 DC server. I am using "latest" pulled via git last week early. Applied "v9" patches fr= om "Stephen Hemminger". Linux guest I am using is Ubuntu 18.04 upgraded to 4.16.11 Kernel. Problem: Testpmd does not seem to receive any packets. Log: "alias tpmd=3D'./testpmd -l 0-1 --log-level=3D8 --log-level=3D'\''pmd.net.n= etvsc.*:debug'\'' --log-level=3D'\''bus.vmbus:debug'\'' --log-level=3D'\''l= ib.ethdev.*:debug'\'' -- -i'" root@ubuntu-1804-dev:~/v9/dpdk# ./huge-setup.sh eth1 eth2 Removing currently reserved hugepages Unmounting /mnt/huge and removing directory Reserving hugepages Creating /mnt/huge and mounting as hugetlbfs Rebind eth1 to hv_uio_generic Rebind eth2 to hv_uio_generic root@ubuntu-1804-dev:~/v9/dpdk# cd x86_64-native-linuxapp-gcc/app/ root@ubuntu-1804-dev:~/v9/dpdk/x86_64-native-linuxapp-gcc/app# tpmd EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket vmbus_scan_one(): Adding vmbus device a759f3db-77bb-4e7c-ac6f-504c268c7f2b vmbus_scan_one(): Adding vmbus device fd149e91-82e0-4a7d-afa6-2a4166cbd7c0 vmbus_scan_one(): Adding vmbus device 58f75a6d-d949-4320-99e1-a2a2576d581c vmbus_scan_one(): Adding vmbus device f5bee29c-1741-4aad-a4c2-8fdedb46dcc2 vmbus_scan_one(): Adding vmbus device 3e7e7e4c-e8cb-4e05-a0aa-a267ced7b73e vmbus_scan_one(): Adding vmbus device 1eccfd72-4b41-45ef-b73a-4a6e44c12924 vmbus_scan_one(): Adding vmbus device d34b2567-b9b6-42b9-8778-0a4ec0b955bf vmbus_scan_one(): Adding vmbus device 4487b255-b88c-403f-bb51-d1f69cf17f87 vmbus_scan_one(): Adding vmbus device 83a43d10-0c74-45ec-a293-31e29ebb1787 vmbus_scan_one(): Adding vmbus device 242ff919-07db-4180-9c2e-b86cb68c8c55 vmbus_scan_one(): Adding vmbus device 2dd1ce17-079e-403c-b352-a1921ee207ee vmbus_scan_one(): Adding vmbus device 00000000-0000-8899-0000-000000000000 vmbus_scan_one(): Adding vmbus device 99221fa0-24ad-11e2-be98-001aa01bbf6e vmbus_scan_one(): Adding vmbus device 1ac2a997-5040-4851-89e4-3ccd48e51cf9 vmbus_scan_one(): Adding vmbus device 5620e0c7-8062-4dce-aeb7-520c7ef76171 vmbus_scan_one(): Adding vmbus device b6650ff7-33bc-4840-8048-e0676786f393 vmbus_scan_one(): Adding vmbus device 2450ee40-33bf-4fbd-892e-9fb06e9214cf vmbus_scan_one(): Adding vmbus device 00000000-0001-8899-0000-000000000000 EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! vmbus_probe_one_driver(): VMBUS device 3e7e7e4c-e8cb-4e05-a0aa-a267ced7b73e= on NUMA socket -1 rte_vmbus_map_device(): Not managed by UIO driver, skipped vmbus_probe_one_driver(): VMBUS device 83a43d10-0c74-45ec-a293-31e29ebb1787= on NUMA socket -1 vmbus_probe_one_driver(): Invalid NUMA socket, default to 0 vmbus_probe_one_driver(): probe driver: net_netvsc eth_hn_probe(): >> eth_dev_vmbus_allocate(): eth_dev_vmbus_allocate: Allocating eth dev for 83= a43d10-0c74-45ec-a293-31e29ebb1787 eth_dev_vmbus_allocate(): Num of ETH devices after allocation =3D 0 eth_hn_dev_init(): >> hn_nvs_init(): NVS version 0x60001, NDIS version 6.30 hn_nvs_conn_rxbuf(): connect rxbuff va=3D0x7fcbfe0ff000 gpad=3D0xe1e33 hn_nvs_conn_rxbuf(): receive buffer size 1728 count 9102 hn_nvs_conn_chim(): connect send buf va=3D0x7fcbfd1ff000 gpad=3D0xe1e34 hn_nvs_conn_chim(): send buffer 15728640 section size:6144, count:2560 hn_rndis_init(): RNDIS ver 1.0, aggpkt size 4026531839, aggpkt cnt 8, aggpk= t align 8 hn_rndis_link_status(): link status 0x4001000b hn_rndis_set_rxfilter(): set RX filter 0 done hn_tx_pool_init(): create a TX send pool hn_txd_0 n=3D2560 size=3D32 socket= =3D0 hn_rndis_get_eaddr(): MAC address 00:15:5d:0a:6e:0a eth_hn_dev_init(): VMBus max channels 1 hn_rndis_query_rsscaps(): RX rings 64 indirect 128 caps 0x301 vmbus_probe_one_driver(): VMBUS device a759f3db-77bb-4e7c-ac6f-504c268c7f2b= on NUMA socket -1 vmbus_probe_one_driver(): Invalid NUMA socket, default to 0 vmbus_probe_one_driver(): probe driver: net_netvsc eth_hn_probe(): >> eth_dev_vmbus_allocate(): eth_dev_vmbus_allocate: Allocating eth dev for a7= 59f3db-77bb-4e7c-ac6f-504c268c7f2b eth_dev_vmbus_allocate(): Num of ETH devices after allocation =3D 1 eth_hn_dev_init(): >> hn_nvs_init(): NVS version 0x60001, NDIS version 6.30 hn_nvs_conn_rxbuf(): connect rxbuff va=3D0x7fcbf5cfe000 gpad=3D0xe1e30 hn_nvs_conn_rxbuf(): receive buffer size 1728 count 9102 hn_nvs_conn_chim(): connect send buf va=3D0x7fcbf4dfe000 gpad=3D0xe1e31 hn_nvs_conn_chim(): send buffer 15728640 section size:6144, count:2560 hn_rndis_init(): RNDIS ver 1.0, aggpkt size 4026531839, aggpkt cnt 8, aggpk= t align 8 hn_rndis_link_status(): link status 0x4001000b hn_rndis_set_rxfilter(): set RX filter 0 done hn_tx_pool_init(): create a TX send pool hn_txd_1 n=3D2560 size=3D32 socket= =3D0 hn_rndis_get_eaddr(): MAC address 00:15:5d:0a:6e:09 eth_hn_dev_init(): VMBus max channels 1 hn_rndis_query_rsscaps(): RX rings 64 indirect 128 caps 0x301 Interactive-mode selected hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f testpmd: create a new mbuf pool : n=3D155456, size=3D21= 76, socket=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_configure(): >> hn_rndis_link_status(): link status 0x40020006 hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_tx_queue_setup(): >> hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_rx_queue_setup(): >> hn_dev_start(): >> hn_rndis_set_rxfilter(): set RX filter 0xd done hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_rndis_set_rxfilter(): set RX filter 0x9 done hn_rndis_set_rxfilter(): set RX filter 0x9 done hn_dev_link_update(): Port 0 is up Port 0: 00:15:5D:0A:6E:0A Configuring Port 1 (socket 0) hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_configure(): >> hn_rndis_link_status(): link status 0x40020006 hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_tx_queue_setup(): >> hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_dev_rx_queue_setup(): >> hn_dev_start(): >> hn_rndis_set_rxfilter(): set RX filter 0xd done hn_dev_info_get(): >> hn_rndis_get_offload(): offload capa Tx 0x802f Rx 0x180f hn_rndis_set_rxfilter(): set RX filter 0x9 done hn_rndis_set_rxfilter(): set RX filter 0x9 done hn_dev_link_update(): Port 1 is up Port 1: 00:15:5D:0A:6E:09 Checking link statuses... Done hn_rndis_set_rxfilter(): set RX filter 0x20 done hn_rndis_set_rxfilter(): set RX filter 0x20 done testpmd> start io packet forwarding - ports=3D2 - cores=3D1 - streams=3D2 - NUMA support e= nabled, MP over anonymous pages disabled Logical Core 1 (socket 0) forwards packets on 2 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D1/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:01 RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:00 io packet forwarding packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D2 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x1000 Tx offloads=3D0x0 RX queue: 0 RX desc=3D0 - RX free threshold=3D0 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D0 - TX free threshold=3D0 TX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 TX offloads=3D0x0 - TX RS bit threshold=3D0 port 1: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x1000 Tx offloads=3D0x0 RX queue: 0 RX desc=3D0 - RX free threshold=3D0 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D0 - TX free threshold=3D0 TX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 TX offloads=3D0x0 - TX RS bit threshold=3D0 hn_dev_stats_get(): >> hn_dev_stats_get(): >> testpmd> show port stats 0 hn_dev_stats_get(): >> ######################## NIC statistics for port 0 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> show port stats 1 hn_dev_stats_get(): >> ######################## NIC statistics for port 1 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> show port stats 1 hn_dev_stats_get(): >> ######################## NIC statistics for port 1 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> quit Telling cores to stop... Waiting for lcores to finish... hn_dev_stats_get(): >> ---------------------- Forward statistics for port 0 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- hn_dev_stats_get(): >> ---------------------- Forward statistics for port 1 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++ Done. Shutting down port 0... Stopping ports... hn_dev_stop(): >> hn_rndis_set_rxfilter(): set RX filter 0 done Done Closing ports... hn_dev_close(): close Done Shutting down port 1... Stopping ports... hn_dev_stop(): >> hn_rndis_set_rxfilter(): set RX filter 0 done Done Closing ports... hn_dev_close(): close Done Bye... Shutting down port 0... Stopping ports... Done Closing ports... Port 0 is already closed Done Shutting down port 1... Stopping ports... Done Closing ports... Port 1 is already closed Done Bye...