mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
@@ -2001,7 +2001,7 @@ netdev_dpdk_ring_send(struct netdev *netdev_, int qid,
|
||||
* the consumer of the ring and return into the datapath without recalculating
|
||||
* the RSS hash. */
|
||||
for (i = 0; i < cnt; i++) {
|
||||
dp_packet_set_rss_hash(pkts[i], 0);
|
||||
dp_packet_rss_invalidate(pkts[i]);
|
||||
}
|
||||
|
||||
netdev_dpdk_send__(netdev, qid, pkts, cnt, may_steal);
|
||||
|
Reference in New Issue
Block a user