]> git.baikalelectronics.ru Git - kernel.git/commit
fq_codel: Avoid regenerating skb flow hash unless necessary
authorAndrew Collins <acollins@cradlepoint.com>
Wed, 18 Jan 2017 21:04:28 +0000 (14:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 17:15:14 +0000 (12:15 -0500)
commitd16b7a72779de8a64e12ceda6ae3eb63d58b4c71
treed4c67ef7b45e5c44f23cd5b0c05e8f99634c6818
parent776392e6c5be0f264451e599e2709d38b1708130
fq_codel: Avoid regenerating skb flow hash unless necessary

The fq_codel qdisc currently always regenerates the skb flow hash.
This wastes some cycles and prevents flow seperation in cases where
the traffic has been encrypted and can no longer be understood by the
flow dissector.

Change it to use the prexisting flow hash if one exists, and only
regenerate if necessary.

Signed-off-by: Andrew Collins <acollins@cradlepoint.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq_codel.c