Messages in this thread | | | Subject | Re: Bottom half for network drivers | Date | Fri, 10 Sep 1999 17:05:35 +0100 (BST) | From | Alan Cox <> |
| |
> This MCU has a sofisticated built-in ethernet interface and i wrote a > driver for it.
Wasn't the AMD 7990 about 1990 8).
> When the ETH controller generates a let's say RECEIVE COMPLETE interrupt > I have to scan the receieve ring for all descriptors saying to hold a good > received packet, for each such > descriptor i find corresponding skb adjust the length, call netif_rx(skb), > then i allocate a new skb
For small frames you need to copy/checksum the frame to keep the memory usage sane. Take a look at tulip.c, lance.c and most other drivers that do this
> netif_rx, dev_alloc_skb calls, inside the interrupt handler.
It shouldnt take very long. netif_rx is a short queueing function
From the drivers we have I dont think it will be an issue.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |