[Bug 204415] vnic/bgx driver does not build as a module

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 11 17:28:04 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204415

--- Comment #1 from Ed Maste <emaste at freebsd.org> ---
I tried creating a naive/straightforward module Makefile and found errors in
the module dependencies -- for example, thunder_bgx depends on octeon_mdio
which seems like it is probably a copy-and-paste leftover.

Do we expect this to be split in four separate modules (vf, pf, bgx, mdio)?


volta% ag 'MODULE_DEPEND|DRIVER_MODULE'
nicvf_main.c
130:DRIVER_MODULE(nicvf, pci, nicvf_driver, nicvf_devclass, 0, 0);
131:MODULE_DEPEND(nicvf, pci, 1, 1, 1);
132:MODULE_DEPEND(nicvf, ether, 1, 1, 1);
133:MODULE_DEPEND(nicvf, vnic_pf, 1, 1, 1);

thunder_mdio_fdt.c
61:EARLY_DRIVER_MODULE(thunder_mdio, ofwbus, thunder_mdio_fdt_driver,

thunder_bgx.c
111:DRIVER_MODULE(thunder_bgx, pci, thunder_bgx_driver, thunder_bgx_devclass,
0, 0);
112:MODULE_DEPEND(thunder_bgx, pci, 1, 1, 1);
113:MODULE_DEPEND(thunder_bgx, ether, 1, 1, 1);
114:MODULE_DEPEND(thunder_bgx, octeon_mdio, 1, 1, 1);

nic_main.c
148:DRIVER_MODULE(nicpf, pci, nicpf_driver, nicpf_devclass, 0, 0);
149:MODULE_DEPEND(nicpf, pci, 1, 1, 1);
150:MODULE_DEPEND(nicpf, ether, 1, 1, 1);
151:MODULE_DEPEND(nicpf, thunder_bgx, 1, 1, 1);

thunder_mdio.c
124:DRIVER_MODULE(miibus, thunder_mdio, miibus_driver, miibus_devclass, 0, 0);
125:MODULE_DEPEND(thunder_mdio, ether, 1, 1, 1);
126:MODULE_DEPEND(thunder_mdio, miibus, 1, 1, 1);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list