netdev
[Top] [All Lists]

Re: RFR: new SiS gige driver

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: Re: RFR: new SiS gige driver
From: Andi Kleen <ak@xxxxxxx>
Date: Sat, 9 Aug 2003 16:15:33 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20030808173932.GA4077@xxxxxxx>
References: <20030808173932.GA4077@xxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
> * since it's gige, it should definitely be using NAPI

* it does not check its kmalloc returns.
* and doesn't set a DMA mask. This means it is not DAC capable?
* does not use pci_dma_* mappings like David noted.
* no hardware checksum support? This looks quite poor for a Gigabit chipset.
* same with sendpage - gigabit should have that.
* missing NAPI and even with NAPI it should support interrupt mitigation - but
the driver doesn't seem to do that. I suspect it's very easily DoSable
in the current form. Even with NAPI interrupt mitigation would be needed,
otherwise the start/stop of polling mode can be too expensive for moderate
load.
* netif_stop_queue in hard_start_xmit is not protected against the interrupt by 
the 
spinlock. That's racy, isn't it?

-Andi

<Prev in Thread] Current Thread [Next in Thread>