svn commit: r316007 - stable/11/sys/dev/xen/netback

Kevin Lo kevlo at FreeBSD.org
Mon Mar 27 01:06:26 UTC 2017


Author: kevlo
Date: Mon Mar 27 01:06:25 2017
New Revision: 316007
URL: https://svnweb.freebsd.org/changeset/base/316007

Log:
  MFC r315878:
  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

Modified:
  stable/11/sys/dev/xen/netback/netback.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/xen/netback/netback.c
==============================================================================
--- stable/11/sys/dev/xen/netback/netback.c	Sun Mar 26 21:14:49 2017	(r316006)
+++ stable/11/sys/dev/xen/netback/netback.c	Mon Mar 27 01:06:25 2017	(r316007)
@@ -1233,11 +1233,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;


More information about the svn-src-all mailing list