From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id F11B11B1EF for ; Mon, 30 Oct 2017 23:33:21 +0100 (CET) Received: by mail-wr0-f175.google.com with SMTP id l8so14161346wre.12 for ; Mon, 30 Oct 2017 15:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ke4MzAHL37mg4nfoZpPBNo+z3Tg9wjPzqMudNaxfWao=; b=pXfLQCrwT+AiR1VPgeCyfKpgxW5FHLNPuuvAfJM6gkAlMV4uZwUBMfpbiIZ+vWnOMZ JJKVTL6XwH/O8x/WkTgMz87r2eKaw8ar5a92qA3dUPsWgGilyG0AllL5BDanl2aG3mGw 6RmEzwxAojk0Fkcy0ZKW3DUuKhfir0PM1v7FzwkZxZ38MEuQ3ZtCS9rLoMw4I83oN+vA SVmqVwj3HCcxpBhMM21+L8yiSoRBWJp1PbiKyPUtNWmLEHIOFx3sQ3bAhXE86fyEIXml /Lweqr6l6N39jztS7uMX8BI2rRtFpYyMxF6wNjN2tdpTa/h77A2pfRnp9IonBQhOHc9T Demg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ke4MzAHL37mg4nfoZpPBNo+z3Tg9wjPzqMudNaxfWao=; b=BIS/AWoGMfQ0FWum24ydcqY6renYXeWfwhykZZL41OVV3GvL86KmxzfquTCIjEL6vI TdtEL6FIJdHBZVwP3ZLvNnvHxb0SSKGcv7Zyn0iqEPVqIVp1rssKNakhhZWFEo4sQqUA 0gVbqpvOvMNsrDRUCpx28fCt6gRWIJ/DPrZAKLL8tdeBovZYsz9pyfeHeFyeY7Vfn+jQ +7/FK0sQj7mqCDb8Sokeg9iQtEcc7Y8/w/iAqEErVHJHCvfs3ZeHMhRf2UcBUSePADR6 5HKQ3d1Sfn43DOKJKhE8q9yqUii6MpmjWzp9nEx39JSDi9zkLKoEvQ52b4PNMz45in+G srxw== X-Gm-Message-State: AMCzsaXfcZoWVLjXk5ps5NmJOyBdzP38LYLvJyAkZGc1gY+FCop5iW1P zWFQCtUCf2djdZO5MPAiq0g5KYkVplGwmMpBwgl/EQ== X-Google-Smtp-Source: ABhQp+Tpnlg3ecgCPJir7G+tpErtK8IEuYCTpiQB/W1Xq5rwPXG4RZeZriBg5UQuskoQh6RDCmS8FWDBFvXf01U/iSU= X-Received: by 10.223.166.65 with SMTP id k59mr8861077wrc.125.1509402801216; Mon, 30 Oct 2017 15:33:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.158.140 with HTTP; Mon, 30 Oct 2017 15:33:20 -0700 (PDT) From: Nishant Verma Date: Mon, 30 Oct 2017 18:33:20 -0400 Message-ID: To: dev@dpdk.org, "Lu, Wenzhuo" , vnish11 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] LINUX VF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 22:33:22 -0000 Hi, I am trying to configure SRIOV on my SUPERMICRO BLADES. I assigned 10G NIC to igb_uio. After that created 4 VF's. Out of 4 VF's, 3 are used by DPDK App and one I am assigning to Linux kernel. Now when I am assigning IP to a virtual interface on top of Linux VF after PF is up. The first time it takes the IP but internally it just goes down and comes up again. That basically leads to change in MAC address of the virtual interface VF. After this, i am not able to send or receive any packet on a virtual interface on top of linuxVF. If I down everything on Linux side, then UP the interface and re-create the virtual on top of Linux VF then things works, becuase, in this case, MAC address of both the VF and virtual interface on top of VF are same. My Question is, Why linuxVF is going down? How can i stop it or can have same MAC address every time? --- This is when i assigned interface to linux VF [root@localhost aavila]# ifconfig enp2s16f7 enp2s16f7: flags=4098 mtu 1500 ether 02:7f:48:b1:a7:b9 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ---- After creating virtual NIC and assigning IP 7: enp2s16f7: mtu 1500 qdisc mq state UP qlen 1000 link/ether f6:45:8f:03:ba:1a brd ff:ff:ff:ff:ff:ff inet6 fe80::f445:8fff:fe03:ba1a/64 scope link valid_lft forever preferred_lft forever 8: vlan2034@enp2s16f7: mtu 1500 qdisc noqueue state UP link/ether f6:45:8f:03:ba:1a brd ff:ff:ff:ff:ff:ff inet 10.31.226.6/20 scope global vlan2034 valid_lft forever preferred_lft forever inet6 fe80::f445:8fff:fe03:ba1a/64 scope link valid_lft forever preferred_lft forever --------- After some seconds... 7: enp2s16f7: mtu 1500 qdisc mq state UP qlen 1000 link/ether 02:7f:48:b1:a7:b9 brd ff:ff:ff:ff:ff:ff 8: vlan2034@enp2s16f7: mtu 1500 qdisc noqueue state UP link/ether f6:45:8f:03:ba:1a brd ff:ff:ff:ff:ff:ff inet 10.31.226.6/20 scope global vlan2034 valid_lft forever preferred_lft forever ---- Here is the dmesg output : [ 320.341653] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 320.341686] ixgbevf 0000:02:10.7: NIC Link is Down [ 322.338665] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 323.340775] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 324.341407] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 324.341428] ixgbevf 0000:02:10.7: NIC Link is Down [ 326.338448] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 327.340536] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 328.341172] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 328.341194] ixgbevf 0000:02:10.7: NIC Link is Down [ 328.341252] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 329.342992] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 330.343652] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 330.343698] ixgbevf 0000:02:10.7: NIC Link is Down [ 330.343770] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 331.344292] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 333.344258] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 334.344630] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 334.344653] ixgbevf 0000:02:10.7: NIC Link is Down [ 336.341439] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 380.276206] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 381.276826] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 381.276849] ixgbevf 0000:02:10.7: NIC Link is Down [ 381.385871] IPv6: ADDRCONF(NETDEV_UP): enp2s16f7: link is not ready [ 381.385874] 8021q: adding VLAN 0 to HW filter on device enp2s16f7 [ 381.386386] device enp2s16f7 entered promiscuous mode [ 381.394896] IPv6: ADDRCONF(NETDEV_UP): vlan2034: link is not ready [ 382.343248] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 382.353248] IPv6: ADDRCONF(NETDEV_CHANGE): vlan2034: link becomes ready [ 383.353628] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 384.354004] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 385.354582] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 386.354958] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 386.355252] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s16f7: link becomes ready [ 387.355899] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 388.356533] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 389.357654] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 390.358357] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 391.359263] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 392.359965] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 393.362737] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 393.362993] ixgbevf 0000:02:10.7: NIC Link is Down [ 394.357568] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 395.359945] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 395.360161] ixgbevf 0000:02:10.7: NIC Link is Down [ 395.360205] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps [ 397.355218] ixgbevf 0000:02:10.7 enp2s16f7: Polling for VF0 mailbox ack timedout [ 397.355433] ixgbevf 0000:02:10.7: NIC Link is Down [ 398.354374] ixgbevf 0000:02:10.7: NIC Link is Up 10 Gbps Rgds, Nishant