Skip to content

Commit

Permalink
Removed unused socket callback
Browse files Browse the repository at this point in the history
After reworking tempesta socket closing we don't
`sk_destroy_cb` callback
  • Loading branch information
EvgeniiMekhanik committed Aug 8, 2023
1 parent 279295f commit 45138c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ struct sock {
int (*sk_fill_write_queue)(struct sock *sk,
unsigned int mss_now,
bool with_limit);
void (*sk_destroy_cb)(struct sock *sk);
#endif
void (*sk_error_report)(struct sock *sk);
int (*sk_backlog_rcv)(struct sock *sk,
Expand Down
4 changes: 0 additions & 4 deletions net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4073,10 +4073,6 @@ void tcp_done(struct sock *sk)
if (!sock_flag(sk, SOCK_DEAD)) {
sk->sk_state_change(sk);
} else {
#ifdef CONFIG_SECURITY_TEMPESTA
if (sk->sk_destroy_cb)
sk->sk_destroy_cb(sk);
#endif
inet_csk_destroy_sock(sk);
}
}
Expand Down

0 comments on commit 45138c4

Please sign in to comment.