net/ipn3ke: delete MAC register address mask
authorAndy Pei <andy.pei@intel.com>
Mon, 1 Jul 2019 10:36:26 +0000 (18:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
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 <andy.pei@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_ethdev.c

index ac8ecc2..15fdeb3 100644 (file)
@@ -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;