[ovs-git] [openvswitch/ovs] 61a264: packet-dpif: Add dpif_packet_{get, set}_hash()
GitHub
noreply at github.com
Fri Aug 29 23:32:31 UTC 2014
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 61a2647e155c835e946407aa365c4d2adb5b57d5
https://github.com/openvswitch/ovs/commit/61a2647e155c835e946407aa365c4d2adb5b57d5
Author: Daniele Di Proietto <ddiproietto at vmware.com>
Date: 2014-08-29 (Fri, 29 Aug 2014)
Changed paths:
M lib/dpif-netdev.c
M lib/netdev-bsd.c
M lib/netdev-dpdk.c
M lib/netdev-dummy.c
M lib/netdev-linux.c
M lib/odp-execute.c
M lib/packet-dpif.c
M lib/packet-dpif.h
Log Message:
-----------
packet-dpif: Add dpif_packet_{get, set}_hash()
These function are used to stored the packet hash. 'netdev-dpdk'
automatically set this value to the RSS hash returned by the
NIC. Other 'netdev's set it to 0 (which is an invalid hash
value), so that callers can compute the hash on their own.
If DPDK support is enabled, struct dpif_packet's member
'dp_hash' is removed and 'pkt.hash.rss' from DPDK mbuf is used
This commit also configure DPDK devices to compute RSS hash
for UDP and IPv6 packets
Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>
Commit: 9bbf1c3dc0f9642e0e6c614f9ccb5a1e64810938
https://github.com/openvswitch/ovs/commit/9bbf1c3dc0f9642e0e6c614f9ccb5a1e64810938
Author: Daniele Di Proietto <ddiproietto at vmware.com>
Date: 2014-08-29 (Fri, 29 Aug 2014)
Changed paths:
M lib/dpif-netdev.c
Log Message:
-----------
dpif-netdev: Exact match cache
Since lookups in the classifier can be pretty expensive,
we introduce this (thread local) cache which simply
compares the miniflows of the packets
Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>
Compare: https://github.com/openvswitch/ovs/compare/9230662a8799...9bbf1c3dc0f9
More information about the git
mailing list