netdev-dpdk: Reset RSS hash when receiving from a vhost device.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 24 Jun 2015 15:55:40 +0000 (08:55 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 25 Jun 2015 18:19:04 +0000 (11:19 -0700)
commitab09c9f04f3be6b44c077a0239059fa00656d3b7
tree158d53fa7c995004e5c273018850cdd06992bffd
parent534caf02605133b1c2c62c7ec0d4442f8b973a1b
netdev-dpdk: Reset RSS hash when receiving from a vhost device.

A vhost device, being a virtual interface, doesn't provide a valid RSS
hash.  As a workaround we set the value to 0, which suggests the
datapath to recompute the hash in software.

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