Building driver for BCM57504 from Broadcom?

From: Kurt Jaeger <pi_at_freebsd.org>
Date: Fri, 24 Jun 2022 12:57:15 UTC
Hi!

For more details, see:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263046

Problem: Getting a BCM57504 card to work on FreeBSD

Current state of affairs:

There's a driver from Broadcom:

  https://www.broadcom.com/products/ethernet-connectivity/network-adapters/p425g

as version 222.0.74.0.

It's source, so I tried to build it on 13.1, after I disabled -Werror in 

        share/mk/bsd.sys.mk
        sys/conf/kern.pre.mk

Now it builds, but fails to load, with those error messages:

link_elf_obj: symbol if_multiaddr_count undefined
linker_load_file: /usr/obj/usr/src/amd64.amd64/sys/modules/bnxt/if_bnxt.ko - unsupported file type

I've tried to find that if_multiaddr_count() function in
the source tree (either 13.1 or current), but failed 8-(

Does anyone have an idea where that function might come from ?
Or should I fake it ?

-- 
pi@FreeBSD.org         +49 171 3101372                  Now what ?