Skip to content

Commit 46ea929

Browse files
Shahjada Abul Husaindavem330
authored andcommitted
cxgb4: fix delete filter entry fail in unload path
Currently, the hardware TID index is assumed to start from index 0. However, with the following changeset, commit c219399 ("cxgb4: add support for high priority filters") hardware TID index can start after the high priority region, which has introduced a regression resulting in remove filters entry failure for cxgb4 unload path. This patch fix that. Fixes: c219399 ("cxgb4: add support for high priority filters") Signed-off-by: Shahjada Abul Husain <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fc191af commit 46ea929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,15 +902,15 @@ void clear_all_filters(struct adapter *adapter)
902902
adapter->tids.tid_tab[i];
903903

904904
if (f && (f->valid || f->pending))
905-
cxgb4_del_filter(dev, i, &f->fs);
905+
cxgb4_del_filter(dev, f->tid, &f->fs);
906906
}
907907

908908
sb = t4_read_reg(adapter, LE_DB_SRVR_START_INDEX_A);
909909
for (i = 0; i < sb; i++) {
910910
f = (struct filter_entry *)adapter->tids.tid_tab[i];
911911

912912
if (f && (f->valid || f->pending))
913-
cxgb4_del_filter(dev, i, &f->fs);
913+
cxgb4_del_filter(dev, f->tid, &f->fs);
914914
}
915915
}
916916
}

0 commit comments

Comments
 (0)