Bug 222774

Summary: 'ifconfig bnxt0' command trying to load if_bnxt.ko driver if not loaded
Product: Base System Reporter: Bhargava Chenna. Marreddy <bhargava.marreddy>
Component: kernAssignee: Eugene Grosbein <eugen>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: eugen
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Bhargava Chenna. Marreddy 2017-10-04 11:33:23 UTC
Steps to Reproduce: 
--------------------

1) Unload the existing L2 driver. 
   ## kldunload if_bnxt 

2) Run ifconfig command with device name starting with bnxt with a number. 
   Example:- 
     ## ifconfig bnxt 
     ## ifconfig bnxt234

3) In all of the above mentioned scenarios , the if_bnxt driver gets loaded. 

Can someone please confirm if this expected behavior?
Comment 1 Eugene Grosbein freebsd_committer freebsd_triage 2017-10-08 00:17:07 UTC
This behaviour is expected and documented in the ifconfig(8) manual page:

     If the network interface driver is not present in the kernel then
     ifconfig will attempt to load it.  The -n flag disables this behavior.

Please use forums or mailing lists to ask such questions and leave Bugzilla is for problem reporting.