diff options
author | 2021-08-16 13:59:17 +0200 | |
---|---|---|
committer | 2021-08-18 10:14:00 +0100 | |
commit | 86b9bbd332d0510679c7fedcee3e3bd278be5756 (patch) | |
tree | c2dc5533ad58e28295520e6e281ae26dc6979670 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path (diff) | |
download | wireguard-linux-86b9bbd332d0510679c7fedcee3e3bd278be5756.tar.xz wireguard-linux-86b9bbd332d0510679c7fedcee3e3bd278be5756.zip |
sch_cake: fix srchost/dsthost hashing mode
When adding support for using the skb->hash value as the flow hash in CAKE,
I accidentally introduced a logic error that broke the host-only isolation
modes of CAKE (srchost and dsthost keywords). Specifically, the flow_hash
variable should stay initialised to 0 in cake_hash() in pure host-based
hashing mode. Add a check for this before using the skb->hash value as
flow_hash.
Fixes: b0c19ed6088a ("sch_cake: Take advantage of skb->hash where appropriate")
Reported-by: Pete Heist <pete@heistp.net>
Tested-by: Pete Heist <pete@heistp.net>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions