Skip to contentSkip to conversation

chelsio/chtls: Remove unused chtls_set_tcb_tflag

PATCH Applied [email protected] 3 participants 3 messages Oct 7, 2024 – Oct 8, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 chelsio/chtls: Remove unused chtls_set_tcb_tflag

From: "Dr. David Alan Gilbert" <[email protected]>

chtls_set_tcb_tflag() has been unused since 2021's commit 827d329105bf ("chtls: Remove invalid set_tcb call")

Remove it.

---
 drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h | 1 -
 .../net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c  | 9 ---------
 2 files changed, 10 deletions(-)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h +0 -1
index 7ff82b6778ba..21e0dfeff158 100644
@@ -573,7 +573,6 @@ int send_tx_flowc_wr(struct sock *sk, int compl,
 		     u32 snd_nxt, u32 rcv_nxt);
 void chtls_tcp_push(struct sock *sk, int flags);
 int chtls_push_frames(struct chtls_sock *csk, int comp);
-int chtls_set_tcb_tflag(struct sock *sk, unsigned int bit_pos, int val);
 void chtls_set_tcb_field_rpl_skb(struct sock *sk, u16 word,
 				 u64 mask, u64 val, u8 cookie,
 				 int through_l2t);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c +0 -9
index 1e67140b0f80..fab6df21f01c 100644
@@ -106,15 +106,6 @@ void chtls_set_tcb_field_rpl_skb(struct sock *sk, u16 word,
 	send_or_defer(sk, tcp_sk(sk), skb, through_l2t);
 }
 
-/*
- * Set one of the t_flags bits in the TCB.
- */
-int chtls_set_tcb_tflag(struct sock *sk, unsigned int bit_pos, int val)
-{
-	return chtls_set_tcb_field(sk, 1, 1ULL << bit_pos,
-				   (u64)val << bit_pos);
-}
-
 static int chtls_set_tcb_keyid(struct sock *sk, int keyid)
 {
 	return chtls_set_tcb_field(sk, 31, 0xFFFFFFFFULL, keyid);
Signature · 1 line
2.46.2
#2 lore raw
In reply to [email protected]
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Mon, 7 Oct 2024 01:46:52 +0100 you wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

chtls_set_tcb_tflag() has been unused since 2021's commit 827d329105bf ("chtls: Remove invalid set_tcb call")

Remove it.

[...]

Here is the summary with links:
- [net-next] chelsio/chtls: Remove unused chtls_set_tcb_tflag

    https://git.kernel.org/netdev/net-next/c/35213cfeefa5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html