提交 d6f5493c 编写于 作者: A Al Viro 提交者: David S. Miller

[NET]: Annotate callers of csum_tcpudp_nofold() in net/*

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d3bc23e7
...@@ -135,7 +135,7 @@ static inline void ip_tr_mc_map(__be32 addr, char *buf) ...@@ -135,7 +135,7 @@ static inline void ip_tr_mc_map(__be32 addr, char *buf)
struct ip_reply_arg { struct ip_reply_arg {
struct kvec iov[1]; struct kvec iov[1];
u32 csum; __wsum csum;
int csumoffset; /* u16 offset of csum in iov[0].iov_base */ int csumoffset; /* u16 offset of csum in iov[0].iov_base */
/* -1 if not needed */ /* -1 if not needed */
}; };
......
...@@ -78,9 +78,9 @@ static void queue_process(void *p) ...@@ -78,9 +78,9 @@ static void queue_process(void *p)
} }
static int checksum_udp(struct sk_buff *skb, struct udphdr *uh, static int checksum_udp(struct sk_buff *skb, struct udphdr *uh,
unsigned short ulen, u32 saddr, u32 daddr) unsigned short ulen, __be32 saddr, __be32 daddr)
{ {
unsigned int psum; __wsum psum;
if (uh->check == 0 || skb->ip_summed == CHECKSUM_UNNECESSARY) if (uh->check == 0 || skb->ip_summed == CHECKSUM_UNNECESSARY)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册