From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f170.google.com (mail-qt0-f170.google.com [209.85.216.170]) by dpdk.org (Postfix) with ESMTP id 158BA1B1B5 for ; Tue, 9 Jan 2018 17:14:50 +0100 (CET) Received: by mail-qt0-f170.google.com with SMTP id i40so18424526qti.8 for ; Tue, 09 Jan 2018 08:14:50 -0800 (PST) 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=Dy2rgHqzj2hF1StxqVm8HteLSsfc2aBsGMwVzzRLs+o=; b=Ebu4aZUhEAzFUE74Yt4OTZ/42DeVKzilgAB0uTlzyoNbajYlnoeoapSafYPSA3rmXr MF5sBY01RvXaT9o0iR62jPp9mLvK+jW6P3dJV1BAueZckHAmVfKPE0cFtqlHfzfs0cgd 7U27jXVSXy4gwA8vWtU4BJOdpyiEr6KjJGymTYD1QIAbPdQtMOxlLYza2kNiEH9RONdL SyuIICyV9D0D4+kdTPKJvnwvKpR0k6+3NW6Q6dnipzZb6o4zcdQ/uq2f27x/rowCogW6 4ptoE/GGJCcSQCh+lgy7CJES0eyp2+BOZD4N/Zo/AcQKswnQIvolf0O7WTOP5lx89bTd QD6A== 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=Dy2rgHqzj2hF1StxqVm8HteLSsfc2aBsGMwVzzRLs+o=; b=glk/oMI8I1b+wEbhpDjSGi4eFNM+a/9IBdzO015uug2+GcjgiN3wbttQCKC+AzsHUQ 5iKXNv0GRP3qNMaw7sAPHNZdiZnOnfZyFn6xLv2XDCudUQSp+7I7MZqsIYBTXncw3MmU dqT0NfJQYn8ScCuBL58hnu3A+xgUi9NGXcHEFLhMqanSfbjmW1yQfk5VVzAMjYtMylpa UQVoO0ndQbvJynmj695i30aBGPZf+0WwoPOWecMiUtS+pxrPNa98PCGD3So8vWVByw8y PhFXZ149NGMYvPWY9jPqDdjatwr56x5BjFVLCRCccBLNNzA43ZHAqAMHtnGzPCBuSWNO JjCQ== X-Gm-Message-State: AKwxytdgrj4YUwMVh/lUhX2oKs3sqgdT2N0xEWiokcnfJLTYUD8vrjDw c833NdcFhKf7fOR33j7pMrq+Vz2Z/4Qv7yHxWNYkNOxb X-Google-Smtp-Source: ACJfBotpTVG/cj7FHEJAah4wPJFl8buBSHKopZd6M1z9dAHInj/IbAd+jycxZBFgRZ4e12oIcmBqMxP3iRWjruh+Vso= X-Received: by 10.200.9.22 with SMTP id t22mr21103828qth.74.1515514490078; Tue, 09 Jan 2018 08:14:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.196.1 with HTTP; Tue, 9 Jan 2018 08:14:49 -0800 (PST) From: Tushar Mulkar Date: Tue, 9 Jan 2018 21:44:49 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] PF link status is not getting detected by dpdk driver in VM 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: Tue, 09 Jan 2018 16:14:51 -0000 Hi All, I am using "Ethernet Controller X710 for 10GbE SFP+" SRIOV NIC card on the host with 8 VFs. Out of these VFs two VFs are associated with a VM, one VF is bound to Linux kernel driver i40evf and another is bound to dpdk pmd i.e. igb_uio. when there is a link fault on the hardware nic, the fault is not detected for the VF that is bound to dpdk. Instead it is detecting medium change from 10GBase-SR to 100BASE-TXFD. Is there any configuration, that will allow me to detect the link state on hardware NIC in the VM ? Basically I want to get the Link change notification on the dpdk application in VM. I tried to register for the link state change interrupt but the "rte_eth_dev_configure" fails with error code -22 I believe link-state auto actually means replicate PF link-state to VF Current Config : [root@ironman tmp]# ip link show p2p2 34: p2p2: mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff vf 0 MAC xx:xx:xx:xx:xx:01, spoof checking on, link-state auto, trust off vf 1 MAC xx:xx:xx:xx:xx:02, spoof checking on, link-state auto, trust off vf 2 MAC xx:xx:xx:xx:xx:03, spoof checking on, link-state auto, trust off vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off vf 6 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off vf 7 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off Regards, Tushar