aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2015-08-14 15:49:24 +0100
committerZoltan Kiss <zoltan.kiss@linaro.org>2015-08-14 15:49:24 +0100
commit411bef0c6acd3c5e34cb26d69f24b40a86d6731a (patch)
tree1319c7484f1542865c5f2260c0da58c7ddd492cc
parent2ae7df27436c924e7124ca86e386a63dc9079f68 (diff)
netdev-odp: fix using uninitialized rss_hashodp-v1
uninitialized rss_hash is used in dpif_netdev_packet_get_rss_hash(). This leads to avoiding of hash calculation and subsequent problems with flow matching. Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
-rw-r--r--lib/netdev-odp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c
index 4119495d9..2dee28f88 100644
--- a/lib/netdev-odp.c
+++ b/lib/netdev-odp.c
@@ -556,6 +556,7 @@ netdev_odp_rxq_recv(struct netdev_rxq *rxq_, struct dp_packet **packets,
packets[i] = (struct dp_packet*) odp_packet_user_area(pkt_tbl[i]);
packets[i]->odp_pkt = pkt_tbl[i];
dp_packet_init_odp(packets[i], SHM_PKT_POOL_BUF_SIZE);
+ dp_packet_set_rss_hash(packets[i], 0);
}
*c = pkts;