NTB: Revert r289645
Per Benno, this is a Linuxism we do not need in FreeBSD. Suggested by: benno Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d9503a7fcd
commit
a69ff5b1ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289654
@ -400,9 +400,6 @@ ntb_setup_interface(void)
|
||||
ntb_transport_link_up(net_softc.qp);
|
||||
net_softc.bufsize = ntb_transport_max_size(net_softc.qp) +
|
||||
sizeof(struct ether_header);
|
||||
|
||||
if_printf(ifp, "if_ntb device setup\n");
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
@ -414,7 +411,6 @@ ntb_teardown_interface(void)
|
||||
ntb_transport_link_down(net_softc.qp);
|
||||
|
||||
if (net_softc.ifp != NULL) {
|
||||
if_printf(net_softc.ifp, "if_ntb device destroyed\n");
|
||||
ether_ifdetach(net_softc.ifp);
|
||||
if_free(net_softc.ifp);
|
||||
}
|
||||
|
@ -531,8 +531,6 @@ ntb_attach(device_t device)
|
||||
|
||||
pci_enable_busmaster(ntb->device);
|
||||
|
||||
device_printf(ntb->device, "NTB device registered\n");
|
||||
|
||||
out:
|
||||
if (error != 0)
|
||||
ntb_detach(device);
|
||||
@ -564,8 +562,6 @@ ntb_detach(device_t device)
|
||||
ntb_detect_max_mw(ntb);
|
||||
ntb_unmap_pci_bar(ntb);
|
||||
|
||||
device_printf(ntb->device, "NTB device unregistered\n");
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user