1
0
Fork 0
mirror of https://passt.top/passt synced 2025-09-02 01:43:13 +02:00

tcp: Don't export tcp_update_csum()

tcp_update_csum() is exposed in tcp_internal.h, but is only used in tcp.c.
Remove the unneded prototype and make it static.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2025-03-05 17:15:06 +11:00 committed by Stefano Brivio
commit 27395e67c2
2 changed files with 2 additions and 3 deletions

3
tcp.c
View file

@ -787,7 +787,8 @@ static void tcp_sock_set_nodelay(int s)
* @th: TCP header (updated)
* @payload: TCP payload
*/
void tcp_update_csum(uint32_t psum, struct tcphdr *th, struct iov_tail *payload)
static void tcp_update_csum(uint32_t psum, struct tcphdr *th,
struct iov_tail *payload)
{
th->check = 0;
psum = csum_unfolded(th, sizeof(*th), psum);