Author: sephe
Date: Fri Sep  2 05:30:38 2016
New Revision: 305276
URL: https://svnweb.freebsd.org/changeset/base/305276

Log:
  hyperv/hn: Use the per-packet-info types defined by net/rndis.h
  
  MFC after:    1 week
  Sponsored by: Microsoft
  Differential Revision:        https://reviews.freebsd.org/D7737

Modified:
  head/sys/dev/hyperv/netvsc/hv_rndis_filter.c

Modified: head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_rndis_filter.c        Fri Sep  2 04:27:02 
2016        (r305275)
+++ head/sys/dev/hyperv/netvsc/hv_rndis_filter.c        Fri Sep  2 05:30:38 
2016        (r305276)
@@ -191,28 +191,28 @@ hv_rf_find_recvinfo(const rndis_packet *
                data = pi->rm_data;
 
                switch (pi->rm_type) {
-               case ieee_8021q_info:
+               case NDIS_PKTINFO_TYPE_VLAN:
                        if (__predict_false(dlen < NDIS_VLAN_INFO_SIZE))
                                return (EINVAL);
                        info->vlan_info = *((const uint32_t *)data);
                        mask |= HV_RF_RECVINFO_VLAN;
                        break;
 
-               case tcpip_chksum_info:
+               case NDIS_PKTINFO_TYPE_CSUM:
                        if (__predict_false(dlen < NDIS_RXCSUM_INFO_SIZE))
                                return (EINVAL);
                        info->csum_info = *((const uint32_t *)data);
                        mask |= HV_RF_RECVINFO_CSUM;
                        break;
 
-               case nbl_hash_value:
+               case HN_NDIS_PKTINFO_TYPE_HASHVAL:
                        if (__predict_false(dlen < HN_NDIS_HASH_VALUE_SIZE))
                                return (EINVAL);
                        info->hash_value = *((const uint32_t *)data);
                        mask |= HV_RF_RECVINFO_HASHVAL;
                        break;
 
-               case nbl_hash_info:
+               case HN_NDIS_PKTINFO_TYPE_HASHINF:
                        if (__predict_false(dlen < HN_NDIS_HASH_INFO_SIZE))
                                return (EINVAL);
                        info->hash_info = *((const uint32_t *)data);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to