]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen-netfront: no need to set if_output master
authorroyger <royger@FreeBSD.org>
Mon, 19 Oct 2015 14:37:17 +0000 (14:37 +0000)
committerroyger <royger@FreeBSD.org>
Mon, 19 Oct 2015 14:37:17 +0000 (14:37 +0000)
This is redundant because ether_ifattach will set that field.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3918
Sponsored by: Citrix Systems R&D

sys/dev/xen/netfront/netfront.c

index 521292bbc2ea26cc1788006a7b8497988d567594..687cb1c53cb344dab130e880696c79e8d78474ce 100644 (file)
@@ -1906,7 +1906,6 @@ create_netdev(device_t dev)
        if_initname(ifp, "xn",  device_get_unit(dev));
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
        ifp->if_ioctl = xn_ioctl;
-       ifp->if_output = ether_output;
        ifp->if_start = xn_start;
 #ifdef notyet
        ifp->if_watchdog = xn_watchdog;