From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f173.google.com (mail-qt0-f173.google.com [209.85.216.173]) by dpdk.org (Postfix) with ESMTP id EAC521B1C7 for ; Wed, 10 Jan 2018 11:44:15 +0100 (CET) Received: by mail-qt0-f173.google.com with SMTP id u10so21432616qtg.2 for ; Wed, 10 Jan 2018 02:44:15 -0800 (PST) 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=414spm83NzB0ylNsrxQlJAPop/mblyOR7VF8tD8L2eo=; b=H3H6tu/KJ3tGI+7XY1k9XEKNbRkq/Xtw9C1RUJv/PdhVkXb4xVPwaIYGxLYaWakPuT ANp+6WGVuKtZPEqHzw7Fnrrg1OiqujZez0Hdno4NDckdkzMtI9smlf++0ARcSgesNezC 05JbVen3TWAXH9Eeg9jliZmSa6FgGbjkZjIA5jj/6rBG84h0lqz2in0a54SQxBV+K3a8 /AYuw8ACkCHU3Uw6kKLhY3KtMkJTr2uiD+F8fmdLk7/fng85VNti2FZ+/D7PCPxWydbS UGVGbHcfbqSpkIqYOk/kI6OwGIQCJYJmk+OC/YWErUMc1Zmle8pGJmeTc07xRuMEfpPA I6cQ== 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=414spm83NzB0ylNsrxQlJAPop/mblyOR7VF8tD8L2eo=; b=nnbGYU69LDGuvcLXDdExP6thAFD5avZXDiMTeBL7I/KDOWPO15tGg295OSvaXLTxkJ GTlo3hG/EXRoAlosupmvhci0v142U/hwg9+GIPdUzyPdvBGpBTVlaFtuazCQjSFfd3ce TicTRwKP2qNI6WvLy9Y6YSlssMPDz723aIoDSG/5oPuCPHERA53M9sndNRTDt+tw9j94 NNaG6hcOSjuheV0bT5kSweU41OsYMqXkvAkkiDuA6Y1plImB7FaexnN9d/UU7y2WKMqa pWgrC3GyTwvfIL98PVU6CyjmbOvefKmBfUXA1hcCv4DokAWEnLaZMAJKaYpc87uxUO1G ux3w== X-Gm-Message-State: AKwxytfiyEh4Ba+/7+FTugsQscMSyEGBT0MrwcjqwHBs9IdlltD/ByYQ DJENYnqDeM8KJata0Noa+Qyg/FMyF87KWci0UpgUuc0y X-Google-Smtp-Source: ACJfBosx/7tBA2OpTE5SoBpk4qX8n4wVVIHylhcAnpdPOYvbYEkTZR0nVvhqc5XRvDS5q3eb7oEqmKrXyqyg0Zuf3Z8= X-Received: by 10.200.3.170 with SMTP id t42mr26740318qtg.259.1515581054919; Wed, 10 Jan 2018 02:44:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.196.1 with HTTP; Wed, 10 Jan 2018 02:44:14 -0800 (PST) In-Reply-To: References: From: Tushar Mulkar Date: Wed, 10 Jan 2018 16:14:14 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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 10:44:16 -0000 I think the IX710 device doesn't support the Link Change Interrupt. I have enabled the debug traces and I could see following in the messages Jan 10 02:07:53 packet-forwarding[1518]: rte_eth_dev_configure: driver net_i40e_vf does not support lsc Also I could verify that the virtual function bound to kernel (i.e. i40evf ) is able to detect the link failure in the PF. Tushar On Wed, Jan 10, 2018 at 12:18 PM, Tushar Mulkar wrote: > 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 > >