Order in which a driver attaches to devices

Navdeep Parhar np at FreeBSD.org
Thu Sep 6 21:08:31 UTC 2012


I have a system with multiple cards supported by cxgbe(4).  When I build 
a kernel with the driver compiled in, it attaches to the cards in a 
different order from when it's loaded as a module.  Why?  The network 
interfaces get re-ordered and this is quite annoying.

Regards,
Navdeep

built-in:
t4nex0: <Chelsio T422-CR> mem 
0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 
at device 0.4 on pci8
cxgbe0: <port 0> on t4nex0
cxgbe1: <port 1> on t4nex0
cxgbe2: <port 2> on t4nex0
cxgbe3: <port 3> on t4nex0
t4nex1: <Chelsio T420-CR> mem 
0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 
at device 0.4 on pci6
cxgbe4: <port 0> on t4nex1
cxgbe5: <port 1> on t4nex1


kldload if_cxgb:
t4nex0: <Chelsio T420-CR> mem 
0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 
at device 0.4 on pci6
cxgbe0: <port 0> on t4nex0
cxgbe1: <port 1> on t4nex0
t4nex1: <Chelsio T422-CR> mem 
0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 
at device 0.4 on pci8
cxgbe2: <port 0> on t4nex1
cxgbe3: <port 1> on t4nex1
cxgbe4: <port 2> on t4nex1
cxgbe5: <port 3> on t4nex1


More information about the freebsd-hackers mailing list