]> git.baikalelectronics.ru Git - kernel.git/commit
sch_cake: don't call diffserv parsing code when it is not needed
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 25 Jun 2020 20:12:08 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:24:05 +0000 (16:24 -0700)
commit1da4b848ad69dfa4c297d1b928b14ebb04051ea6
treeb81eccaee3731a5ca290926fbece484249ac2514
parent6e0dff69e48a0f47aeb843af0df3a21b812ab0e1
sch_cake: don't call diffserv parsing code when it is not needed

As a further optimisation of the diffserv parsing codepath, we can skip it
entirely if CAKE is configured to neither use diffserv-based
classification, nor to zero out the diffserv bits.

Fixes: 555362652f04 ("sch_cake: Make sure we can write the IP header before changing DSCP bits")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cake.c