Bug 282777 - net/intel-ix-kmod: build error since 1500027 (struct ifnet is now hidden)
Summary: net/intel-ix-kmod: build error since 1500027 (struct ifnet is now hidden)
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-15 09:41 UTC by Olivier Cochard
Modified: 2024-12-06 20:29 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>)