netdev
[Top] [All Lists]

NAPI question about old drivers

To: netdev@xxxxxxxxxxx
Subject: NAPI question about old drivers
From: Jason Lunz <j@xxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2002 13:56:46 -0500
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.3.27i
I'm reading the NAPI patch and I don't understand how old drivers can
continue to work.

in net_rx_action(), NAPI does this:

        if (dev->quota <= 0 || dev->poll(dev, &budget)) {

what happens to legacy drivers that don't set dev->poll? I see
netif_rx() has been modified, but drivers that call that and don't have
a dev->poll will be in trouble when net_rx_action() runs.

am i missing something?

-- 
Jason Lunz              Trellis Network Security
j@xxxxxxxxxxxxxx        http://www.trellisinc.com/

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