Bug 282777

Summary: net/intel-ix-kmod: build error since 1500027 (struct ifnet is now hidden)
Product: Ports & Packages Reporter: Olivier Cochard <olivier>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: freebsd, krzysztof.galazka
Priority: --- Flags: bugzilla: maintainer-feedback? (freebsd)
Version: Latest   
Hardware: Any   
OS: Any   

Description Olivier Cochard freebsd_committer freebsd_triage 2024-11-15 09:41:10 UTC
Hi,

looks like a long due change switch to default on current:
https://lists.freebsd.org/archives/freebsd-net/2024-November/005983.html

In file included from if_ix.c:42:
./ixgbe.h:621:30: error: incomplete definition of type 'struct ifnet'
  621 |         return IFQ_DRV_IS_EMPTY(&ifp->if_snd);
      |                                  ~~~^
/usr/src/sys/net/ifq.h:301:5: note: expanded from macro 'IFQ_DRV_IS_EMPTY'
  301 |         (((ifq)->ifq_drv_len == 0) && ((ifq)->ifq_len == 0))
      |            ^~~
Comment 1 Krzysztof Galazka 2024-12-06 19:11:45 UTC
Thanks Olivier! I'll look into that.
Comment 2 Olivier Cochard freebsd_committer freebsd_triage 2024-12-06 20:29:35 UTC
(In reply to Krzysztof Galazka from comment #1)
check here for discussion and example of patch for other drivers:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282778

Please, use the ifAPI way (and not the quick way of adding <net/if_private.h>)