Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/netfront/netfront.c
| Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
| * structures and the ring buffers for communication with the backend, and | * structures and the ring buffers for communication with the backend, and | ||||
| * inform the backend of the appropriate details for those. Switch to | * inform the backend of the appropriate details for those. Switch to | ||||
| * Connected state. | * Connected state. | ||||
| */ | */ | ||||
| static int | static int | ||||
| netfront_probe(device_t dev) | netfront_probe(device_t dev) | ||||
| { | { | ||||
| if (xen_hvm_domain() && xen_disable_pv_nics != 0) | if (xen_pv_nics_disabled()) | ||||
| return (ENXIO); | return (ENXIO); | ||||
| if (!strcmp(xenbus_get_type(dev), "vif")) { | if (!strcmp(xenbus_get_type(dev), "vif")) { | ||||
| device_set_desc(dev, "Virtual Network Interface"); | device_set_desc(dev, "Virtual Network Interface"); | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| return (ENXIO); | return (ENXIO); | ||||
| ▲ Show 20 Lines • Show All 1,955 Lines • Show Last 20 Lines | |||||