From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id AC56C559C; Thu, 27 Apr 2017 07:17:27 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2017 22:17:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,257,1488873600"; d="scan'208";a="961612460" Received: from dpdk7.bj.intel.com ([172.16.182.73]) by orsmga003.jf.intel.com with ESMTP; 26 Apr 2017 22:17:25 -0700 From: Qiming Yang To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, stable@dpdk.org, Qiming Yang Date: Thu, 27 Apr 2017 13:07:29 +0800 Message-Id: <1493269649-56200-1-git-send-email-qiming.yang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-stable] [PATCH] net/e1000: fix vf received problem X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2017 05:17:28 -0000 VF default MAC address be added in PF Mac address list instead of VF MAC address list, makes VF can't recieve packets. This patch fixes this issue. Fixes: be2d648a2dd3 ("igb: add PF support") Signed-off-by: Qiming Yang --- drivers/net/e1000/igb_pf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/e1000/igb_pf.c b/drivers/net/e1000/igb_pf.c index 67da3c2..1a70ad5 100644 --- a/drivers/net/e1000/igb_pf.c +++ b/drivers/net/e1000/igb_pf.c @@ -338,6 +338,9 @@ igb_vf_set_mac_addr(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) rte_memcpy(vfinfo[vf].vf_mac_addresses, new_mac, sizeof(vfinfo[vf].vf_mac_addresses)); hw->mac.ops.rar_set(hw, new_mac, rar_entry); + int rah = E1000_READ_REG(hw, E1000_RAH(rar_entry)); + rah |= (0x1 << (E1000_RAH_POOLSEL_SHIFT + vf)); + E1000_WRITE_REG(hw, E1000_RAH(rar_entry), rah); return 0; } return -1; -- 2.7.4