[lkml]   [2003]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectNetwork device driver Question
I'm working on a driver for a new device.  This NIC is on-chip, and 
memory mapped.
It can DMA to/from any memory location.

I am trying to optimize the driver such that it there is no need to copy
to/from sk_buff
in the send_packet and on packet receive.

The problem I have is with a CPU that has a writeback cache. When the
is called, the data in the sk_buff may be cached. In the driver I can
allocate a page as
uncached and copy to that page, however I am trying to avoid unneeded

For receive there is a similar problem. When I allocate the sk_buff I
need to invalidate
the caches. That way after a new packet arrives a read from that memory
location will
not hit in the cache and return incorrect data.

Is there some sanctioned way that will work on any architecture to cause
a writeback
of the dcached based on a range of virtual addresses, and similiarly
cause an invalidate?


-John Newlin

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:58    [W:0.023 / U:1.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site