Date: Fri, 24 Mar 2017 01:23:07 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315878 - head/sys/dev/xen/netback Message-ID: <201703240123.v2O1N7Gi018518@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Fri Mar 24 01:23:07 2017 New Revision: 315878 URL: https://svnweb.freebsd.org/changeset/base/315878 Log: Don't initialize if_output to ether_output(), ether_ifattach() does it for us already. While here, remove NOTYET code since if_watchdog is no longer used. Reviewed by: royger MFC after: 3 days Modified: head/sys/dev/xen/netback/netback.c Modified: head/sys/dev/xen/netback/netback.c ============================================================================== --- head/sys/dev/xen/netback/netback.c Fri Mar 24 00:55:16 2017 (r315877) +++ head/sys/dev/xen/netback/netback.c Fri Mar 24 01:23:07 2017 (r315878) @@ -1232,11 +1232,7 @@ create_netdev(device_t dev) if_initname(ifp, xnb->if_name, IF_DUNIT_NONE); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = xnb_ioctl; - ifp->if_output = ether_output; ifp->if_start = xnb_start; -#ifdef notyet - ifp->if_watchdog = xnb_watchdog; -#endif ifp->if_init = xnb_ifinit; ifp->if_mtu = ETHERMTU; ifp->if_snd.ifq_maxlen = NET_RX_RING_SIZE - 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703240123.v2O1N7Gi018518>