Re: em(4): simplify mac type tests

Jonathan Gray <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
On Fri, Aug 14, 2026 at 02:11:45PM +1000, Jonathan Matthew wrote:
> On Wed, Aug 05, 2026 at 12:19:29PM +1000, Jonathan Gray wrote:
> > reduce the number of places to change when adding mac types
> 
> Makes sense to me.  The em_clear_hw_cntrs() bit looks weird, but
> I think we've been getting that wrong since pch2lan was added, and
> this change fixes it.  ok jmatthew@

right, in Intel's FreeBSD and DPDK drivers
e1000_clear_hw_cntrs_ich8lan() doesn't read ICRXPTC and the rest

they are read for non-pch in
e1000_clear_hw_cntrs_82571()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.