]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb4/chtls: fix ULD connection failures due to wrong TID base
authorShahjada Abul Husain <shahjada@chelsio.com>
Tue, 17 Dec 2019 06:42:09 +0000 (12:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 06:33:54 +0000 (22:33 -0800)
commit59437d78f088e506cabdd5e0f0601c531a9830b4
tree72fcc8973604ce5610f6a2df6661a38816ebc004
parent3646ae0de90eb271ef48ec1fa75e63873ab20fc6
cxgb4/chtls: fix ULD connection failures due to wrong TID base

Currently, the hardware TID index is assumed to start from index 0.
However, with the following changeset,

commit c21939998802 ("cxgb4: add support for high priority filters")

hardware TID index can start after the high priority region, which
has introduced a regression resulting in connection failures for
ULDs.

So, fix all related code to properly recalculate the TID start index
based on whether high priority filters are enabled or not.

Fixes: c21939998802 ("cxgb4: add support for high priority filters")
Signed-off-by: Shahjada Abul Husain <shahjada@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_cm.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h