Toke Høiland-Jørgensen
86b9bbd332
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>
2021-08-18 10:14:00 +01:00
..
2021-03-24 17:52:11 -07:00
2021-06-02 14:01:55 -07:00
2021-07-01 11:21:57 -07:00
2021-06-18 11:58:03 -07:00
2021-06-18 19:47:02 -07:00
2021-06-10 14:08:09 -07:00
2021-03-30 16:54:50 -07:00
2021-06-18 19:47:02 -07:00
2021-08-05 12:15:24 -07:00
2021-08-10 10:10:49 +02:00
2021-06-25 13:13:50 +02:00
2021-08-10 13:25:14 -07:00
2021-07-15 11:08:33 -07:00
2021-07-24 19:02:24 +02:00
2021-06-30 15:51:09 -07:00
2021-08-11 14:43:16 -07:00
2021-06-01 17:01:33 -07:00
2021-08-09 10:00:02 +01:00
2021-07-16 14:06:16 -07:00
2021-01-27 17:04:12 -08:00
2021-08-10 13:22:57 -07:00
2021-04-13 14:35:02 -07:00
2021-07-01 13:08:18 -07:00
2021-06-16 12:13:01 -07:00
2021-08-10 12:18:10 +02:00
2021-01-27 17:04:12 -08:00
2021-08-11 15:54:10 -07:00
2021-07-23 16:40:41 +01:00
2021-07-01 15:54:01 -07:00
2021-06-29 11:28:21 -07:00
2021-05-26 07:03:39 +02:00
2021-06-07 14:08:30 -07:00
2021-03-28 17:56:55 -07:00
2021-06-08 16:31:25 -07:00
2021-07-27 13:05:56 +01:00
2021-08-17 06:51:43 -07:00
2021-04-06 22:42:16 +02:00
2021-04-27 14:17:00 -07:00
2021-08-03 14:26:46 -07:00
2021-07-08 14:16:39 -07:00
2021-08-06 17:07:41 +02:00
2021-06-15 11:19:04 -07:00
2021-07-13 09:28:29 -07:00
2021-07-18 09:48:59 -07:00
2021-07-05 14:08:24 -07:00
2021-08-09 15:37:35 -07:00
2021-06-30 15:51:09 -07:00
2021-03-14 15:00:43 -07:00
2021-08-03 11:14:03 +01:00
2021-06-30 15:51:09 -07:00
2021-04-20 16:44:04 -07:00
2021-03-10 12:45:15 -08:00
2021-06-30 15:51:09 -07:00
2021-08-18 10:14:00 +01:00
2021-08-03 11:43:43 +01:00
2021-08-09 10:46:59 +01:00
2021-06-29 11:28:21 -07:00
2021-07-09 09:43:57 -07:00
2021-06-28 14:09:03 -07:00
2021-08-16 11:20:56 +01:00
2021-06-29 15:45:27 -07:00
2021-07-28 10:18:00 -07:00
2021-08-12 10:57:27 -07:00
2021-07-23 10:38:18 +02:00
2021-06-10 14:08:09 -07:00
2021-06-29 15:45:27 -07:00
2021-08-04 10:45:41 +01:00
2021-06-03 15:13:56 -07:00
2021-06-11 12:55:28 -07:00
2021-05-11 13:56:16 -07:00
2021-01-27 17:03:52 -08:00
2021-07-01 13:08:18 -07:00
2021-04-12 13:27:11 -07:00