From b15ad79ce9b6a216f90cccb4fcb310e3b174daff Mon Sep 17 00:00:00 2001 From: Andy Pei Date: Mon, 1 Jul 2019 18:36:26 +0800 Subject: [PATCH] net/ipn3ke: delete MAC register address mask 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: stable@dpdk.org Signed-off-by: Andy Pei Acked-by: Rosen Xu --- 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 ac8ecc2d2d..15fdeb3050 100644 --- a/drivers/net/ipn3ke/ipn3ke_ethdev.c +++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c @@ -48,7 +48,6 @@ ipn3ke_indirect_read(struct ipn3ke_hw *hw, uint32_t *rd_data, 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 @@ ipn3ke_indirect_write(struct ipn3ke_hw *hw, uint32_t wr_data, 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; -- 2.20.1