[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] xenet_FifoSend(struct sk_buff *orig_skb,struct net_device *dev)



Hi,

John Williams wrote:
> If you can measure the time taken in other parts of FifoSend, 
> my guess 
> is a large part is the unavoidable memcpy / 
> skb_copy_and_csum_dev() calls.
unfortunately, yes. A short hack for avoiding the alloc showed the time hasn't changed significantly. :-( Though memory fragmentation may be reduced in hard-threaded systems.

> If you alloc the skb in the driver init function, and free it 
> in driver 
> shutdown, then it will not live forever (if e.g. loaded as a module).
good idea.

I saw the function pointer to xenet_FifoSend() is stored as dev->hard_start_xmit. Which higher layer uses it? Do you think it's worth to have a look if the address offset 2 can be fixed?

CU, Falk

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/