From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by dpdk.org (Postfix) with ESMTP id C22BB2C57 for ; Wed, 10 Jan 2018 07:48:35 +0100 (CET) Received: by mail-qk0-f177.google.com with SMTP id d18so11272401qke.7 for ; Tue, 09 Jan 2018 22:48:35 -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=EdrkKfXv5vi2yTZluK7yX6/axz2X8q6bURtJkB1nQeY=; b=sButXhAiBhGzITYwPwsvd+qSCVX9DpJ0mqGpeV/q+SE0tjq9feyvpdNUhbii6N8DBr jQhGvHrCEqf4Z6x+bZBGMELeifnj30azdXfWn3Xk4KShLwFgcVK1yhPM7vW27988OTuv WePg6Inr5unhAT4Lss+JVz6QGCZa76MerrNahEDPYAdPFROfQbMNXqwZBmjQwDL9cLVD qTfMKc9iTVk85ty9s9YfSP6rN1k7qs/p5Dhez9G9HtcRw6NvoX6eRxS70BUO3C5Betqn Tl+rFzpHBWnp8SJelYgY2dS7NS24R9CKCx2fwgfXPQOZooc3LW5P5l8qw0wB62oB1KGv 1lOw== 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=EdrkKfXv5vi2yTZluK7yX6/axz2X8q6bURtJkB1nQeY=; b=aWxeZwfjPpXPYKm77zun/kUDk2GgktApUUqijDSNYxnv/BE7F7qGom+wZfXPyejReK Tv6C9Mrxls6oHTHDl+x4N5oUfjYx7JgEBD1+9r+h6j+9skspAJLEYc9O4E+m3rSQ5m+B XvJb/YQfv1mxNpIHEk4EIWucanj00kB4jDJ4bmDYZigeRyDznOGcdek+s4FoICggsCMN WKSTA9QHVlAOeeMCWKKL8cPp2yUxyTHGFmh1xfGqlwepw4qMA8MZCV19Wf8ptlaXvKxs eoIgVTmxPM0eA7ey8aewHoXCln3NtFQLw60m81m6YMJH2sW0cPm/4o7QYa21jzgRGdFp VhJA== X-Gm-Message-State: AKwxytcAvfcmTaaTyiJwu5bSPp10tVLpCaFaiNTXB+jU1rEY47x2W+dj N+XBoPjfL8qCGqBUNcyLlathApg5FTac++4eFzYW7JkX X-Google-Smtp-Source: ACJfBovVBy163jmQ2LtCRMtNFw/aX/tTzuuQJe++D07J4r+vSJwKqKdAF45K8ngF1R/5Cp3QRUW9uAdXZOLQzQ2eghk= X-Received: by 10.55.102.87 with SMTP id a84mr11245589qkc.75.1515566914900; Tue, 09 Jan 2018 22:48:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.196.1 with HTTP; Tue, 9 Jan 2018 22:48:34 -0800 (PST) From: Tushar Mulkar Date: Wed, 10 Jan 2018 12:18:34 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] PF link status is not getting detected correctly by dpdk driver in VM 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: Wed, 10 Jan 2018 06:48:36 -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 at 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