[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140212.175154.969884304002436752.davem@davemloft.net>
Date: Wed, 12 Feb 2014 17:51:54 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sergei.shtylyov@...entembedded.com
Cc: netdev@...r.kernel.org
Subject: Re: NETIF_F_HIGHDMA?
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Date: Thu, 13 Feb 2014 02:00:19 +0300
> Hello.
>
> I fail to understand why this flag is needed at
> all. netdev-features.txt says:
>
> * Transmit DMA from high memory
>
> On platforms where this is relevant, NETIF_F_HIGHDMA signals that
> ndo_start_xmit can handle skbs with frags in high memory.
Back when this flag was created we had pretty much no infrastructure
to deal with DMA masks, and furthermore it was not universal that
code accessed high memory pages correctly.
So this was the hack we used, the flag meant that your driver was
able to access high memory pages correctly (ie. didn't assume that
all pages were identity mapped) and that you could handle pages
that potentially had physical addresses above 4GB.
It was a big hammer handling a lack of proper APIs, that's all.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists