[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Make sure hash metadata is only set when the algorithm is Toeplitz



This is the only supported algorithm.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xennet/receiver.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/xennet/receiver.c b/src/xennet/receiver.c
index e5635d2..1e6775e 100644
--- a/src/xennet/receiver.c
+++ b/src/xennet/receiver.c
@@ -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:
-- 
2.5.3


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.