Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1550f22 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[NET]: Annotate ip_vs_checksum_complete() and callers.

parent 81d77662
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -988,7 +988,7 @@ extern int ip_vs_make_skb_writable(struct sk_buff **pskb, int len);
extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp,
		struct ip_vs_conn *cp, int dir);

extern u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset);
extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset);

static inline u16 ip_vs_check_diff(u32 old, u32 new, u16 oldsum)
{
+1 −1
Original line number Diff line number Diff line
@@ -536,7 +536,7 @@ static unsigned int ip_vs_post_routing(unsigned int hooknum,
	return NF_STOP;
}

u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)
__sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)
{
	return csum_fold(skb_checksum(skb, offset, skb->len - offset, 0));
}