From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by dpdk.org (Postfix) with ESMTP id 6CAE52C72 for ; Wed, 19 Apr 2017 09:55:47 +0200 (CEST) Received: by mail-it0-f53.google.com with SMTP id e132so8179885ite.1 for ; Wed, 19 Apr 2017 00:55:47 -0700 (PDT) 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=rswkoHOr2l+dDeO8HNteGsYNIS/mJqwlw3PzuMoPCPk=; b=qbhuNvzfP2DK1Dwql722s9DDkAy9hQ6Xtj/JUfenOTK/v5UAVvUkpRjyVom58j/6gO 6ut72F6g2ATZDGvYbgbMhzGGW/nCqJzPBZSqzhUWoire9ucOLoomEfpZxdyvayInoLkA xAiBOUxDiKzHyz6uvMhfbcXaacFMs7Pdjpzm9jXp5ZrDiCaVrMdi0tmDyGMP/47WLSKU YW7zWqFYZx0Vc+etUvbfXVoLPtVIk6JEOdoWu1Jn2H/meY9NOvw8O3ul83Qhjq/heJvi 0tuVcLv3oI954s5jlzzKpsgreaY8x8d/T2lnljIJYhVBw/YEUSmBs11rIkz2QYefb9Mj 52jw== 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=rswkoHOr2l+dDeO8HNteGsYNIS/mJqwlw3PzuMoPCPk=; b=L5xkN6oBQm1nxYWreh+lfkv9Iwcfnz0CB/8webidF0evdHFFWOalVImBU3EcpCgSFW vxo36b/U8I1YJF9KAa8iFlxmskdYyYW7SMBaNgS/kNnldA6G0PwDsxiX/SFyuVvKUZwc fqp9+lWukbZ1/bIJRRSW5Z5IGLFemyl8xeyMfp844Xyzxig6cuyyFy94OEy33fIJEfPA YAQt8kz7qze+9wWnJ7Ovg6IPG7ONM4UPhqvBwI/I1he00qkftwapy07MjF4J5LrhCrwU lR3a7f6/Z0dnW4SHNylE38LLQFJ1B0FdyHz0HuZuOfJF33IV50fh2YzTZoDiDvuEE+0g p5EA== X-Gm-Message-State: AN3rC/4k9arMcqxGR6MSZZP2fLNZOrasa00g384Np3O2jpv+P4qdlY3+ RcRo1aIiCWKQDY9kJ0ID9EJe3ahgtrv1 X-Received: by 10.36.25.140 with SMTP id b134mr18955123itb.110.1492588546728; Wed, 19 Apr 2017 00:55:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.47.88 with HTTP; Wed, 19 Apr 2017 00:55:46 -0700 (PDT) From: Bill Bonaparte Date: Wed, 19 Apr 2017 15:55:46 +0800 Message-ID: To: DPDK Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] help: ixgbevf can receive but can't xmit packets on X550EM_x_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: Wed, 19 Apr 2017 07:55:47 -0000 Hi: I want to get help from you. I have tried my best, but I still have no idea about this problem. I need to use SR-IOV on my environment, when using 82599_vf, it works fine, but when I ran it on X550EM_x_vf, it can receive packets but cant xmit packets which means it can't send out from pf and can't catpure the packets by tcpdump on peer machine. I have turnoff the spoof checking on the vf. so, it should not be the source mac mismatch problem. by the way, to this problem, I found a weird symptom as following: initially, the vf link is up. and everything seems ok. when I start to send packets using the vf, the vf link becomes down. by the code debug, I located the specific code which trigger the link down. in the xmit function ixgbe_xmit_pkts_vec, it will issue the following register written after put packets into the tx ring. IXGBE_PCI_REG_WRITE(txq->tdt_reg_addr, txq->tx_tail); once this register written, the link check function ixgbe_check_mac_link_vf will check that NACK is set, and then set link down subsequently. the code segments from ixgbe_check_mac_link_vf list here: /* if the read failed it could just be a mailbox collision, best wait * until we are called again and don't report an error */ if ((ret = mbx->ops.read(hw, &in_msg, 1, 0))) { DEBUGCHK("ixgbe_read_mbx_vf failed. ret=%d\n", ret); goto out; } if (!(in_msg & IXGBE_VT_MSGTYPE_CTS)) { /* msg is not CTS and is NACK we must have lost CTS status */ if (in_msg & IXGBE_VT_MSGTYPE_NACK) { DEBUGCHK("Error: NACK is set\n"); ret_val = -1; } goto out; } I really need your help. Appreciate any comments and reply.