svn commit: r305182 - head/sys/net

Sepherosa Ziehau sephe at FreeBSD.org
Thu Sep 1 07:17:07 UTC 2016


Author: sephe
Date: Thu Sep  1 07:17:06 2016
New Revision: 305182
URL: https://svnweb.freebsd.org/changeset/base/305182

Log:
  net/rndis: Define types for RNDIS pktinfo rm_type field.
  
  They are defined by NDIS spec, so the NDIS prefix.
  
  Reviewed by:	hps
  MFC after:	1 week
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D7717

Modified:
  head/sys/net/rndis.h

Modified: head/sys/net/rndis.h
==============================================================================
--- head/sys/net/rndis.h	Thu Sep  1 07:15:23 2016	(r305181)
+++ head/sys/net/rndis.h	Thu Sep  1 07:17:06 2016	(r305182)
@@ -122,7 +122,7 @@ struct rndis_packet_msg {
 /* Per-packet-info for RNDIS data message */
 struct rndis_pktinfo {
 	uint32_t rm_size;
-	uint32_t rm_type;
+	uint32_t rm_type;		/* NDIS_PKTINFO_TYPE_ */
 	uint32_t rm_pktinfooffset;
 	uint8_t rm_data[];
 };
@@ -131,6 +131,19 @@ struct rndis_pktinfo {
 	__offsetof(struct rndis_pktinfo, rm_data[0])
 #define	RNDIS_PKTINFO_ALIGN		4
 
+#define	NDIS_PKTINFO_TYPE_CSUM		0
+#define	NDIS_PKTINFO_TYPE_IPSEC		1
+#define	NDIS_PKTINFO_TYPE_LSO		2
+#define	NDIS_PKTINFO_TYPE_CLASSIFY	3
+/* reserved 4 */
+#define	NDIS_PKTINFO_TYPE_SGLIST	5
+#define	NDIS_PKTINFO_TYPE_VLAN		6
+#define	NDIS_PKTINFO_TYPE_ORIG		7
+#define	NDIS_PKTINFO_TYPE_PKT_CANCELID	8
+#define	NDIS_PKTINFO_TYPE_ORIG_NBLIST	9
+#define	NDIS_PKTINFO_TYPE_CACHE_NBLIST	10
+#define	NDIS_PKTINFO_TYPE_PKT_PAD	11
+
 /*
  * RNDIS control messages
  */


More information about the svn-src-head mailing list