From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 1A54FDE0 for ; Wed, 10 May 2017 10:42:00 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id l50so33420484wrc.3 for ; Wed, 10 May 2017 01:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weka.io; s=google; h=from:to:cc:subject:date:message-id:organization:mime-version :content-transfer-encoding; bh=o4TZ0iBs8EuYWga5bwRBbO6qTOa9zRKfnaWlB/sw06Q=; b=aEm9Y6/TiSgnMcECRnT8cpp9P9D/qrqyfHSj67Eq7B1XrsKmVRl7iMIGimA1FDk8PX qvdbmBMA/omnVYNGyepq/vZunt/5xXUk+2vEiy7MNbh5xT6cwbaL9NAhMOkSl4kWSoBz PsVHVlZfIXUoFX0REzusHVTOPhQkW93+989s4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :mime-version:content-transfer-encoding; bh=o4TZ0iBs8EuYWga5bwRBbO6qTOa9zRKfnaWlB/sw06Q=; b=iGSExeTiiw8gC5DzIWUbKzcuKRreT4btIGP+C5xdqqN6zGTMP4kynPAXd+tt6TTlAu hYyaBM4s9A1s1BKog9tAoslePbp/E3igts/woPeJUCi4nNzMK6T5PT9a2RLWU5yu6mHt BppkPqMGOHvXbhTaW7mW84T2TKxaZjAEtiQ/onKY8QOMHRfy/sw0ivNY3W2W6H6E9tIv 7Gtx1abA/U9ovfV0ANifIAraeiMVGbUrysxvM5MllqN/BHQA++0DpMGf73NfEZmVjfK2 KM9nSfB+gnvDEI70SeVXWy5KyIGBCKue5K4w/LIeMRST0Elbo72IERZU33QRFTeo/5Fl +gLA== X-Gm-Message-State: AODbwcBoXKQAUfI628nlSofFKTuqGTrPyDaNCetgOCJLocGX62qmuOiK 3kXiNMZqJIoblikV X-Received: by 10.28.156.197 with SMTP id f188mr2721437wme.76.1494405719790; Wed, 10 May 2017 01:41:59 -0700 (PDT) Received: from polaris.localnet (bzq-82-81-85-138.red.bezeqint.net. [82.81.85.138]) by smtp.gmail.com with ESMTPSA id o20sm2298795wro.61.2017.05.10.01.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 01:41:59 -0700 (PDT) From: Gregory Etelson To: dev@dpdk.org Cc: "Lu, Wenzhuo" Date: Wed, 10 May 2017 11:41:57 +0300 Message-ID: <99629734.on6ryOyqmF@polaris> Organization: Weka.IO MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] IXGBE VF: segfault in ixgbe_dev_link_update 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: Wed, 10 May 2017 08:42:00 -0000 Hello, My application works with IXGBE VF 17.05-rc4. After I shutdown switch port, a call for rte_eth_link_get() crashes with SEGFAULT. Apparently, ixgbe_dev_link_update() calls for non-existing in VF driver ixgbe_get_link_capabilities(). Is there a patch with get_link_capabilities() implementation for IXGBE VF I can use ? or Can I safely disable call for ixgbe_get_link_capabilities() for VF ? Regards, Gregory #0 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000000000491c36 in ixgbe_dev_link_update (dev=0x751680, wait_to_complete=1) at /root/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:3802 #2 0x000000000043b753 in rte_eth_link_get (port_id=, eth_link=0x7ffe991fff90) at /root/dpdk/lib/librte_ether/rte_ethdev.c:1306 (gdb) f 1 #1 0x0000000000491c36 in ixgbe_dev_link_update (dev=0x751680, wait_to_complete=1) at /root/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:3802 3802 hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) { (gdb) p speed $1 = 0 s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw) { hw->mac.ops.get_link_capabilities = NULL;