From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 34F921B6AA for ; Fri, 3 Nov 2017 14:57:51 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id p75so1706178wmg.3 for ; Fri, 03 Nov 2017 06:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=kS5YE7BgkkSxoJMoCaMGFE9Z+++GYHtPhllUCB2C81Q=; b=ZN4PPyhkHMbrJyq4minicyeide2GjOObn9azINIu8FJlu+ubah8TNcyIrJ7P+00TwF 6l+R0N+StxK8cXUlQtW84mze5VTXtkzSOrTlOrXEsdUhDCaJnaEzd7Q86tSlGT0DGL+d mkLWVzvEAbepiNjAyVqcr8vtXC/hdUDvC7+A1OK2x1lzqAoLRgehjPtnBpT1x7ySZfNP al4AGOJpLkT+uFpjua7G4gmb/zwknCZZPi4clFUkPe4pJCzF6x3BYKv/pzvN7TXPfzMl RyP/xE2mGkUwhO28wuinI5wWdY/lad8Y5/ye94ck3HOn/sESEajxgFfU0Yf/iYh6WfI1 Dz/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=kS5YE7BgkkSxoJMoCaMGFE9Z+++GYHtPhllUCB2C81Q=; b=XUubsgXDiVViyuxf5WGA1CDzhSD3FvKApViNA4LnhykWBgg9sKxO3ZyEQUd0iBF49K gxJec6C2pefpzbVXa9lVOlzxon1OksLJeoBDJj9w6DvmUR7ntZsey1efMzAFhcZHFddZ nbMahmdGmyJBme59Ab2pfRXdkMpt63+QhadLPFbIZIwOAxpl8sruXv0yF0vCYWCPGZAI 4UZUFIzOpfaMgqu3YBgIFXAuy7ZVfi9RrAOLHbKoFpOu5IDR3u+xZXzjCDh64BdENFv7 gTrMVs4iREkH5dnsToPz/R21WR5K9U0Z3/OnTO1BjfkAARq4WOrdYRptY3w7YJLCAC08 NDQw== X-Gm-Message-State: AMCzsaXXnowFwLcGzV659BSAJF11tOWPeBg7sg67Xax6EjOu/e0QTuax VomF4nTvpDwr0I1xK2siUrdZxKhEeDJTpGg3MZE= X-Google-Smtp-Source: ABhQp+R6qPomxYon7fBA4VMfE/QAhqaNJwaPCUaN4aVYkjJAHKqzCsoxUhQjiOTlIUf69nRlrJfdWBa4T6bEz1UpG3I= X-Received: by 10.28.150.194 with SMTP id y185mr4116296wmd.54.1509717471325; Fri, 03 Nov 2017 06:57:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.158.140 with HTTP; Fri, 3 Nov 2017 06:57:50 -0700 (PDT) In-Reply-To: References: From: Nishant Verma Date: Fri, 3 Nov 2017 09:57:50 -0400 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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: Fri, 03 Nov 2017 13:57:52 -0000 Issue Resolved. This is because of NetworkManager service running on CentOs 7. After stopping that service everything works fine. On Mon, Oct 30, 2017 at 6:33 PM, Nishant Verma wrote: > 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 > -- Rgds, Nishant