]> 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)
commit1fc24666e412d103ae6e3ecd9b4d0a1fd3ff604f
treed4c67ef7b45e5c44f23cd5b0c05e8f99634c6818
parentd5bc7453e526d0ab40ad81e3e0689255b2c5b633
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