Skip to content

Commit c3b28ea

Browse files
committed
Merge branch 'bnx2x'
Yuval Mintz says: ==================== This fixes 2 small bugs - one which may cause an unnecessary link flap, and the other is a small memory leak when unloading while cnic is not loaded. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents be3e458 + 0595224 commit c3b28ea

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7774,6 +7774,8 @@ void bnx2x_free_mem(struct bnx2x *bp)
77747774
BNX2X_PCI_FREE(bp->eq_ring, bp->eq_mapping,
77757775
BCM_PAGE_SIZE * NUM_EQ_PAGES);
77767776

7777+
BNX2X_PCI_FREE(bp->t2, bp->t2_mapping, SRC_T2_SZ);
7778+
77777779
bnx2x_iov_free_mem(bp);
77787780
}
77797781

@@ -10667,10 +10669,12 @@ static void bnx2x_get_port_hwinfo(struct bnx2x *bp)
1066710669

1066810670
bp->link_params.speed_cap_mask[0] =
1066910671
SHMEM_RD(bp,
10670-
dev_info.port_hw_config[port].speed_capability_mask);
10672+
dev_info.port_hw_config[port].speed_capability_mask) &
10673+
PORT_HW_CFG_SPEED_CAPABILITY_D0_MASK;
1067110674
bp->link_params.speed_cap_mask[1] =
1067210675
SHMEM_RD(bp,
10673-
dev_info.port_hw_config[port].speed_capability_mask2);
10676+
dev_info.port_hw_config[port].speed_capability_mask2) &
10677+
PORT_HW_CFG_SPEED_CAPABILITY_D0_MASK;
1067410678
bp->port.link_config[0] =
1067510679
SHMEM_RD(bp, dev_info.port_feature_config[port].link_config);
1067610680

0 commit comments

Comments
 (0)