From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 38842A046B for ; Tue, 25 Jun 2019 09:57:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B10E1BBF3; Tue, 25 Jun 2019 09:57:34 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id C72481BBEB for ; Tue, 25 Jun 2019 09:57:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2019 00:57:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,415,1557212400"; d="scan'208";a="163900514" Received: from dipei-st-npg.sh.intel.com ([10.67.110.220]) by orsmga003.jf.intel.com with ESMTP; 25 Jun 2019 00:57:28 -0700 From: Andy Pei To: dev@dpdk.org Cc: andy.pei@intel.com, rosen.xu@intel.com Date: Tue, 25 Jun 2019 15:50:16 +0800 Message-Id: <1561449018-26218-2-git-send-email-andy.pei@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1561449018-26218-1-git-send-email-andy.pei@intel.com> References: <1560934174-408632-4-git-send-email-andy.pei@intel.com> <1561449018-26218-1-git-send-email-andy.pei@intel.com> Subject: [dpdk-dev] [PATCH v4 2/4] net/ipn3ke: delete MAC register address mask 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" original code is compatible with older device, whose mac register address is no more than 10 bits. Now we have mac register address longer than 10 bits, so we just delete the mask here. Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: rosen.xu@intel.com Signed-off-by: Andy Pei --- drivers/net/ipn3ke/ipn3ke_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c b/drivers/net/ipn3ke/ipn3ke_ethdev.c index 9079b57..8d3084d 100644 --- a/drivers/net/ipn3ke/ipn3ke_ethdev.c +++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c @@ -48,7 +48,6 @@ if (eth_group_sel != 0 && eth_group_sel != 1) return -1; - addr &= 0x3FF; target_addr = addr | dev_sel << 17; indirect_value = RCMD | target_addr << 32; @@ -86,7 +85,6 @@ if (eth_group_sel != 0 && eth_group_sel != 1) return -1; - addr &= 0x3FF; target_addr = addr | dev_sel << 17; indirect_value = WCMD | target_addr << 32 | wr_data; -- 1.8.3.1