Skip to content

Commit ef1c755

Browse files
rmchelsiodavem330
authored andcommitted
crypto/chcr: error seen if CONFIG_CHELSIO_TLS_DEVICE isn't set
cxgb4_uld_in_use() is used only by cxgb4_ktls_det_feature() which is under CONFIG_CHELSIO_TLS_DEVICE macro. Fixes: a3ac249 ("cxgb4/chcr: Enable ktls settings at run time") Signed-off-by: Rohit Maheshwari <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cb8e59c commit ef1c755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,14 @@ static int uld_attach(struct adapter *adap, unsigned int uld)
663663
return 0;
664664
}
665665

666+
#ifdef CONFIG_CHELSIO_TLS_DEVICE
666667
static bool cxgb4_uld_in_use(struct adapter *adap)
667668
{
668669
const struct tid_info *t = &adap->tids;
669670

670671
return (atomic_read(&t->conns_in_use) || t->stids_in_use);
671672
}
672673

673-
#ifdef CONFIG_CHELSIO_TLS_DEVICE
674674
/* cxgb4_set_ktls_feature: request FW to enable/disable ktls settings.
675675
* @adap: adapter info
676676
* @enable: 1 to enable / 0 to disable ktls settings.

0 commit comments

Comments
 (0)