-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cxgb4/chcr : Register to tls add and del callback
A new macro is defined to enable ktls tx offload support on Chelsio T6 adapter. And if this macro is enabled, cxgb4 will send mailbox to enable or disable ktls settings on HW. In chcr, enabled tx offload flag in netdev and registered tls_dev_add and tls_dev_del. v1->v2: - mark tcb state to close in tls_dev_del. - u_ctx is now picked from adapter structure. - clear atid in case of failure. - corrected ULP_CRYPTO_KTLS_INLINE value. v2->v3: - add empty line after variable declaration. - local variable declaration in reverse christmas tree ordering. Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Rohit Maheshwari
authored and
David S. Miller
committed
Mar 9, 2020
1 parent
9d2e4e1
commit 34aba2c
Showing
11 changed files
with
499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/* Copyright (C) 2020 Chelsio Communications. All rights reserved. */ | ||
|
||
#ifndef __CHCR_COMMON_H__ | ||
#define __CHCR_COMMON_H__ | ||
|
||
#include "cxgb4.h" | ||
|
||
enum chcr_state { | ||
CHCR_INIT = 0, | ||
CHCR_ATTACH, | ||
CHCR_DETACH, | ||
}; | ||
|
||
struct chcr_dev { | ||
spinlock_t lock_chcr_dev; /* chcr dev structure lock */ | ||
enum chcr_state state; | ||
atomic_t inflight; | ||
int wqretry; | ||
struct delayed_work detach_work; | ||
struct completion detach_comp; | ||
unsigned char tx_channel_id; | ||
}; | ||
|
||
struct uld_ctx { | ||
struct list_head entry; | ||
struct cxgb4_lld_info lldi; | ||
struct chcr_dev dev; | ||
}; | ||
|
||
struct uld_ctx *assign_chcr_device(void); | ||
#endif /* __CHCR_COMMON_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.