Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31330
b: refs/heads/master
c: 3d3a853
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 29, 2006
1 parent 4d12813 commit 1e31fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 47da8ee681d04e68ca1b1812c10e28162150d453
refs/heads/master: 3d3a85337937bb5e3db676eeb4f3bf7f02533b44
6 changes: 2 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,14 +1239,14 @@ void netdev_rx_csum_fault(struct net_device *dev)
EXPORT_SYMBOL(netdev_rx_csum_fault);
#endif

#ifdef CONFIG_HIGHMEM
/* Actually, we should eliminate this check as soon as we know, that:
* 1. IOMMU is present and allows to map all the memory.
* 2. No high memory really exists on this machine.
*/

static inline int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
{
#ifdef CONFIG_HIGHMEM
int i;

if (dev->features & NETIF_F_HIGHDMA)
Expand All @@ -1256,11 +1256,9 @@ static inline int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
if (PageHighMem(skb_shinfo(skb)->frags[i].page))
return 1;

#endif
return 0;
}
#else
#define illegal_highdma(dev, skb) (0)
#endif

struct dev_gso_cb {
void (*destructor)(struct sk_buff *skb);
Expand Down

0 comments on commit 1e31fe1

Please sign in to comment.