You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[NET]: annotate csum_ipv6_magic() callers in net/*
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
+2
-2
@@ -89,9 +89,9 @@ static __inline__ int udp_lib_checksum_complete(struct sk_buff *skb)
|
||||
* @skb: sk_buff containing the filled-in UDP header
|
||||
* (checksum field must be zeroed out)
|
||||
*/
|
||||
static inline u32 udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
|
||||
static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
u32 csum = csum_partial(skb->h.raw, sizeof(struct udphdr), 0);
|
||||
__wsum csum = csum_partial(skb->h.raw, sizeof(struct udphdr), 0);
|
||||
|
||||
skb_queue_walk(&sk->sk_write_queue, skb) {
|
||||
csum = csum_add(csum, skb->csum);
|
||||
|
||||
@@ -124,10 +124,10 @@ static inline int udplite_sender_cscov(struct udp_sock *up, struct udphdr *uh)
|
||||
return cscov;
|
||||
}
|
||||
|
||||
static inline u32 udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb)
|
||||
static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
u32 csum = 0;
|
||||
int off, len, cscov = udplite_sender_cscov(udp_sk(sk), skb->h.uh);
|
||||
__wsum csum = 0;
|
||||
|
||||
skb->ip_summed = CHECKSUM_NONE; /* no HW support for checksumming */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user