Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352852 > unrolled thread

Question concerning function illegal_highdma

Started byLino Sanfilippo <lsanfil@marvell.com>
First post2016-03-08 11:40 +0100
Last post2016-03-08 11:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Question concerning function illegal_highdma Lino Sanfilippo <lsanfil@marvell.com> - 2016-03-08 11:40 +0100

#1352852 — Question concerning function illegal_highdma

FromLino Sanfilippo <lsanfil@marvell.com>
Date2016-03-08 11:40 +0100
SubjectQuestion concerning function illegal_highdma
Message-ID<randw-84x-37@gated-at.bofh.it>
Hi all,

while trying to understand the meaning of the net_device flag NETIF_F_HIGHDMA
I came across the function illegal_highdma() which seems to perform two tasks:

1. Check if a network interface is able to handle high memory pages
2. Check if a network interface is able to handle the resulting DMA addresses

What I dont understand is why both conditions are only checked if CONFIG_HIGHMEM is set.
For 1. this makes sense, of course. But why is 2. also only checked with CONFIG_HIGHMEM?
Should not 2. always be checked, regardless of whether high memory exists in the system or not?

Thanks for any enlightenment in advance!

Regards,
Lino

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web