From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f47.google.com (mail-pl0-f47.google.com [209.85.160.47]) by dpdk.org (Postfix) with ESMTP id E2F52200 for ; Tue, 29 May 2018 17:22:52 +0200 (CEST) Received: by mail-pl0-f47.google.com with SMTP id v24-v6so9153826plo.3 for ; Tue, 29 May 2018 08:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1zasAiMdnV5tI2rQfqzBdxmeJLI5hFPjAS+Yuos4JQE=; b=mu8tWySnpzJE10NxhHiRWLgohmyb+TD/AeHVIUdznbpbVa0ZY8+uXHkV9P5zq+8BBc dXj4OVeo9sVj2D9bR8HDpkVtry7VHaBT/4ogz/FrsW4ieIWQLOnc/pVBT66gCqos3gGf hkRl8OcOqJIJW/qVbFubgHhZPV626JxSMfte4kwL4MLfVjo0/0SzT4XuxNPFrDzY0HjN trsLgHTuf7NXf+9gTR5RWhpSsj+xK11A/KPkRK+N2Tz0J3EMqyYOg1xeDDrANZfr0ZOr JFsv7v9K9LVG54o7V3Mkrs2DlOEtXo1diompdXnfooFjDh6lY0CVuSKU2Qc/BF20ubg8 MVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1zasAiMdnV5tI2rQfqzBdxmeJLI5hFPjAS+Yuos4JQE=; b=XqBxYH9etZMnYZu1znVhqtscKlNwGI1tDP1NyZHhDGjPohnpbrMdmwwcbO48AsZai6 te+oNSm79TOBKNwgyV8mP6Nm2C53fRO60i/Pj64gDfLKHWDAYcKn+Z8V6h7sOycMRPZN dHRY9ZklVAKTQ6NZUOqNsXC8x0ptmXO85sAqvwlbu0xgzNCfYU2lUv8Hbej0+Z/1f20X DKZw+XzwfvzxVomKRmFDPP8Y5cfZPApdw4kOCvroFWCrVloQMbvtlBtb5JlQIt5M1+ZP fzbJiwXNq8RymGxVjZBn+VQeLG+xWn8sZFQYPC8gMcBLz/furptakr/LG2eg9d2vxzmQ 9AhQ== X-Gm-Message-State: ALKqPwdoKmuG8lJCzAWtoRkpG4d+soTCcmWUUG3KfOWiGLUaNR5EqJq+ ngH4rBgHJ//r9n2hxsdmh9ikvEs99GJfkAnHYnffAA== X-Google-Smtp-Source: AB8JxZoynbGgxIiRfNdSsayv/qrs3w5PR6ksI4eh9lssOOelwNbPAD3gCFY+DGgxb33h2b8Iz2Vd5TzVZLN/q2NiEZQ= X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr18259122plb.26.1527607371964; Tue, 29 May 2018 08:22:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stephen Hemminger Date: Tue, 29 May 2018 08:22:40 -0700 Message-ID: To: "Giridharan, Ganesan" Cc: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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 15:22:53 -0000 One possible thing is that Hyperv host filters based on MAC address. What is the sending application using? On Tue, May 29, 2018, 3:56 AM Giridharan, Ganesan wrote: > 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 > from "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='./testpmd -l 0-1 --log-level=8 --log-level='\''pmd.net.netvsc.*:debug'\'' > --log-level='\''bus.vmbus:debug'\'' --log-level='\''lib.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=yes nonstop_tsc=no -> using > unreliable 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 > 83a43d10-0c74-45ec-a293-31e29ebb1787 > eth_dev_vmbus_allocate(): Num of ETH devices after allocation = 0 > eth_hn_dev_init(): >> > hn_nvs_init(): NVS version 0x60001, NDIS version 6.30 > hn_nvs_conn_rxbuf(): connect rxbuff va=0x7fcbfe0ff000 gpad=0xe1e33 > hn_nvs_conn_rxbuf(): receive buffer size 1728 count 9102 > hn_nvs_conn_chim(): connect send buf va=0x7fcbfd1ff000 gpad=0xe1e34 > 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, > aggpkt 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=2560 size=32 socket=0 > 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 > a759f3db-77bb-4e7c-ac6f-504c268c7f2b > eth_dev_vmbus_allocate(): Num of ETH devices after allocation = 1 > eth_hn_dev_init(): >> > hn_nvs_init(): NVS version 0x60001, NDIS version 6.30 > hn_nvs_conn_rxbuf(): connect rxbuff va=0x7fcbf5cfe000 gpad=0xe1e30 > hn_nvs_conn_rxbuf(): receive buffer size 1728 count 9102 > hn_nvs_conn_chim(): connect send buf va=0x7fcbf4dfe000 gpad=0xe1e31 > 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, > aggpkt 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=2560 size=32 socket=0 > 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=155456, size=2176, > socket=0 > 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=2 - cores=1 - streams=2 - NUMA support > enabled, MP over anonymous pages disabled > Logical Core 1 (socket 0) forwards packets on 2 streams: > RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01 > RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00 > > io packet forwarding packets/burst=32 > nb forwarding cores=1 - nb forwarding ports=2 > port 0: RX queue number: 1 Tx queue number: 1 > Rx offloads=0x1000 Tx offloads=0x0 > RX queue: 0 > RX desc=0 - RX free threshold=0 > RX threshold registers: pthresh=0 hthresh=0 wthresh=0 > RX Offloads=0x0 > TX queue: 0 > TX desc=0 - TX free threshold=0 > TX threshold registers: pthresh=0 hthresh=0 wthresh=0 > TX offloads=0x0 - TX RS bit threshold=0 > port 1: RX queue number: 1 Tx queue number: 1 > Rx offloads=0x1000 Tx offloads=0x0 > RX queue: 0 > RX desc=0 - RX free threshold=0 > RX threshold registers: pthresh=0 hthresh=0 wthresh=0 > RX Offloads=0x0 > TX queue: 0 > TX desc=0 - TX free threshold=0 > TX threshold registers: pthresh=0 hthresh=0 wthresh=0 > TX offloads=0x0 - TX RS bit threshold=0 > 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... > >