Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2017 00:55:16 +0000 (UTC)
From:      =?UTF-8?Q?Ermal_Lu=c3=a7i?= <eri@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315877 - head/sys/net
Message-ID:  <201703240055.v2O0tG48006527@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eri
Date: Fri Mar 24 00:55:16 2017
New Revision: 315877
URL: https://svnweb.freebsd.org/changeset/base/315877

Log:
  Correct handling of ALTQ with epair(4) interfaces but presenting that ALTQ(9) is supported.
  
  Approved by:	ae
  MFC after:	2 weeks

Modified:
  head/sys/net/if_epair.c

Modified: head/sys/net/if_epair.c
==============================================================================
--- head/sys/net/if_epair.c	Fri Mar 24 00:02:12 2017	(r315876)
+++ head/sys/net/if_epair.c	Fri Mar 24 00:55:16 2017	(r315877)
@@ -831,7 +831,8 @@ epair_clone_create(struct if_clone *ifc,
 	ifp->if_start = epair_start;
 	ifp->if_ioctl = epair_ioctl;
 	ifp->if_init  = epair_init;
-	ifp->if_snd.ifq_maxlen = ifqmaxlen;
+	if_setsendqlen(ifp, ifqmaxlen);
+	if_setsendqready(ifp);
 	/* Assign a hopefully unique, locally administered etheraddr. */
 	eaddr[0] = 0x02;
 	eaddr[3] = (ifp->if_index >> 8) & 0xff;
@@ -857,7 +858,8 @@ epair_clone_create(struct if_clone *ifc,
 	ifp->if_start = epair_start;
 	ifp->if_ioctl = epair_ioctl;
 	ifp->if_init  = epair_init;
-	ifp->if_snd.ifq_maxlen = ifqmaxlen;
+	if_setsendqlen(ifp, ifqmaxlen);
+	if_setsendqready(ifp);
 	/* We need to play some tricks here for the second interface. */
 	strlcpy(name, epairname, len);
 	error = if_clone_create(name, len, (caddr_t)scb);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703240055.v2O0tG48006527>