CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2015/11/28 15:57:43
Modified files: sys/dev/ic : dc.c Log message: rework dc_start and dc_encap to take advantage of m_defrag. if the chip needs coalesced packages in tx, set the tx dmamaps up to only use a single dma descriptor. use m_defrag when bus_dmamap_load_mbuf returns EFBIG rather than copying the packet to a separate mbuf with hand rolled code in dc_coal. that in turn makes the ifq_deq_begin, ifq_deq_commit, and ifq_deq_rollback handling more straightforward. tested by me on a hppa a180c with a "DEC 21142/3", and fred on bugs@ with a sparc64 netra x1 "Davicom DM9102".