Skip to content

Commit e6f02a4

Browse files
chelsiocudbgdavem330
authored andcommitted
cxgb4: fix trailing zero in CIM LA dump
Set correct size of the CIM LA dump for T6. Fixes: 27887bc ("cxgb4: collect hardware LA dumps") Signed-off-by: Rahul Lakkireddy <[email protected]> Signed-off-by: Ganesh Goudar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c4e43e1 commit e6f02a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ int cudbg_collect_cim_la(struct cudbg_init *pdbg_init,
472472

473473
if (is_t6(padap->params.chip)) {
474474
size = padap->params.cim_la_size / 10 + 1;
475-
size *= 11 * sizeof(u32);
475+
size *= 10 * sizeof(u32);
476476
} else {
477477
size = padap->params.cim_la_size / 8;
478478
size *= 8 * sizeof(u32);

drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static u32 cxgb4_get_entity_length(struct adapter *adap, u32 entity)
102102
case CUDBG_CIM_LA:
103103
if (is_t6(adap->params.chip)) {
104104
len = adap->params.cim_la_size / 10 + 1;
105-
len *= 11 * sizeof(u32);
105+
len *= 10 * sizeof(u32);
106106
} else {
107107
len = adap->params.cim_la_size / 8;
108108
len *= 8 * sizeof(u32);

0 commit comments

Comments
 (0)