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

[win-pv-devel] [PATCH] Avoid calculating a hash if it is not necessary



If there is only a single queue then we do not need to calculate a hash.
There is only one choice in how to steer the packet!

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenvif/transmitter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xenvif/transmitter.c b/src/xenvif/transmitter.c
index 175ea03..90b4008 100644
--- a/src/xenvif/transmitter.c
+++ b/src/xenvif/transmitter.c
@@ -5081,6 +5081,9 @@ __TransmitterHashPacket(
 
     Value = 0;
 
+    if (FrontendGetNumQueues(Frontend) == 1)
+        goto done;
+
     if (IpHeader->Version == 4) {
         PIPV4_HEADER    Version4 = &IpHeader->Version4;
 
-- 
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®.