| 653 | } |
| 654 | |
| 655 | struct ifnet * |
| 656 | if_alloc_dev(u_char type, device_t dev) |
| 657 | { |
| 658 | int numa_domain; |
| 659 | |
| 660 | if (dev == NULL || bus_get_domain(dev, &numa_domain) != 0) |
| 661 | return (if_alloc_domain(type, IF_NODOM)); |
| 662 | return (if_alloc_domain(type, numa_domain)); |
| 663 | } |
| 664 | |
| 665 | struct ifnet * |
| 666 | if_alloc(u_char type) |
nothing calls this directly
no test coverage detected