dpif-netdev: Check for PKT_RX_RSS_HASH flag.
authorDaniele Di Proietto <diproiettod@vmware.com>
Tue, 16 Jun 2015 18:16:24 +0000 (19:16 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 11 Sep 2015 16:43:39 +0000 (17:43 +0100)
commitf2f44f5da083c3a0c31f9080289af1941315b1ad
treef318d63fcce468a86a6e466189261214ddc8a3fc
parent8f96455ddabd4bcbe53f10c985e44d26de7a0385
dpif-netdev: Check for PKT_RX_RSS_HASH flag.

DPDK mbufs contain a valid RSS hash only if PKT_RX_RSS_HASH is
set in 'ol_flags'.  Otherwise the hash is garbage and doesn't
relate to the packet.

This fixes an issue with vhost, which, being a virtual NIC, doesn't
compute the hash.

Reported-by: Dongjun <dongj@dtdream.com>
Suggested-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Kevin Traynor <kevin.traynor@intel.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/dp-packet.h
lib/dpif-netdev.c
lib/netdev-bsd.c
lib/netdev-dpdk.c
lib/netdev-dummy.c
lib/netdev-linux.c