K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-09-27T15:24:16.602549Z K 7 svn:log V 896 Implement netdump interfaces for if_em and if_lem specifically and, contemporary, rework the netdump hooks. The netdump methods are now composed by the following interfaces: - normal polling operation - polling operation that tries to skip locking as much as it can (to be used in DDB case in order to increase chances of deadlock avoidance) - functions for enabling and disabling interrupts when DEVICE_POLLING option is not enabled, in order to avoid problems with polling. The normal/unlocked version of polling is a bit awkward but still used in several places in the FreeBSD kernel and effective when entering DDB. The implementation of netdump_methods is suited for having independency between NETDUMP_CLIENT and DEVICE_POLLING. Right now, the only issue left open is using unlocked version in the KDB_UNATTENDED version too, but it is going to be fixed soon. Reviewed by: rstone END