]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commitdiff
Make sure hash metadata is only set when the algorithm is Toeplitz 8.2.0-rc2
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 10 Jan 2017 17:01:54 +0000 (17:01 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 11 Jan 2017 10:41:53 +0000 (10:41 +0000)
This is the only supported algorithm.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xennet/receiver.c

index e5635d23191ac614322def442010c4eb6be3a724..1e6775e195321b8447edec03a39cfa8320ba2167 100644 (file)
@@ -285,7 +285,7 @@ __ReceiverReceivePacket(
         break;
 
     default:
-        break;
+        goto done;
     }
 
     switch (Hash->Type) {
@@ -308,12 +308,16 @@ __ReceiverReceivePacket(
         NET_BUFFER_LIST_SET_HASH_TYPE(NetBufferList,
                                       NDIS_HASH_TCP_IPV6);
         break;
+
+    default:
+        ASSERT(FALSE);
+        break;
     }
 
     NET_BUFFER_LIST_SET_HASH_VALUE(NetBufferList,
                                    Hash->Value);
 
-
+done:
     return NetBufferList;
 
 fail2: