Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224824
b: refs/heads/master
c: f6dafa9
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Dec 8, 2010
1 parent 08a6e4b commit 48811a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15c2d75f49189e1769c5e8f5f099d03d055c4910
refs/heads/master: f6dafa95d1a48f73ab4a5b0f7dc0dcb72817e051
4 changes: 3 additions & 1 deletion trunk/net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ struct packet_skb_cb {

#define PACKET_SKB_CB(__skb) ((struct packet_skb_cb *)((__skb)->cb))

static inline struct page *pgv_to_page(void *addr)
static inline __pure struct page *pgv_to_page(void *addr)
{
if (is_vmalloc_addr(addr))
return vmalloc_to_page(addr);
Expand Down Expand Up @@ -806,13 +806,15 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,

__packet_set_status(po, h.raw, status);
smp_mb();
#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE == 1
{
u8 *start, *end;

end = (u8 *)PAGE_ALIGN((unsigned long)h.raw + macoff + snaplen);
for (start = h.raw; start < end; start += PAGE_SIZE)
flush_dcache_page(pgv_to_page(start));
}
#endif

sk->sk_data_ready(sk, 0);

Expand Down

0 comments on commit 48811a7

Please sign in to comment.