[ovs-dev] [PATCH] dpif-netdev: emc_processing: remove useless instruction

Ilya Maximets i.maximets at samsung.com
Mon Sep 28 06:47:27 UTC 2015


key.len, if needed, will be initialized inside fast_path_processing().
It will be never used before.

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
 lib/dpif-netdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index e6ba33f..54626b9 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -3220,7 +3220,6 @@ emc_processing(struct dp_netdev_pmd_thread *pmd, struct dp_packet **packets,
         }
 
         miniflow_extract(packets[i], &key.mf);
-        key.len = 0; /* Not computed yet. */
         key.hash = dpif_netdev_packet_get_rss_hash(packets[i], &key.mf);
 
         flow = emc_lookup(flow_cache, &key);
-- 
2.1.4




More information about the dev mailing list