]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit264b87fa617e758966108db48db220571ff3d60e
treed4c67ef7b45e5c44f23cd5b0c05e8f99634c6818
parent1f6cc07e170364212b6d81321f79f166089a60d9
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