[Midnightbsd-cvs] src [9535] trunk/sys/net/if_var.h: bring back if_hw_tsomax.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Sep 15 22:26:49 EDT 2017


Revision: 9535
          http://svnweb.midnightbsd.org/src/?rev=9535
Author:   laffer1
Date:     2017-09-15 22:26:49 -0400 (Fri, 15 Sep 2017)
Log Message:
-----------
bring back if_hw_tsomax. This was a bad revert

Modified Paths:
--------------
    trunk/sys/net/if_var.h

Modified: trunk/sys/net/if_var.h
===================================================================
--- trunk/sys/net/if_var.h	2017-08-20 00:04:01 UTC (rev 9534)
+++ trunk/sys/net/if_var.h	2017-09-16 02:26:49 UTC (rev 9535)
@@ -28,7 +28,7 @@
  * SUCH DAMAGE.
  *
  *	From: @(#)if.h	8.1 (Berkeley) 6/10/93
- * $FreeBSD: stable/9/sys/net/if_var.h 248287 2013-03-14 21:39:39Z jfv $
+ * $FreeBSD: release/9.2.0/sys/net/if_var.h 252781 2013-07-05 13:48:32Z andre $
  */
 
 #ifndef	_NET_IF_VAR_H_
@@ -206,7 +206,11 @@
 	 * be used with care where binary compatibility is required.
 	 */
 	char	if_cspare[3];
-	int	if_ispare[4];
+	u_int	if_hw_tsomax;		/* tso burst length limit, the minmum
+					 * is (IP_MAXPACKET / 8).
+					 * XXXAO: Have to find a better place
+					 * for it eventually. */
+	int	if_ispare[3];
 	void	*if_pspare[8];		/* 1 netmap, 7 TDB */
 };
 
@@ -756,6 +760,8 @@
 #define	IF_MINMTU	72
 #define	IF_MAXMTU	65535
 
+#define	TOEDEV(ifp)	((ifp)->if_llsoftc)
+
 #endif /* _KERNEL */
 
 /*



More information about the Midnightbsd-cvs mailing list