]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: avoid using qdisc_qlen()
authorPaolo Abeni <pabeni@redhat.com>
Wed, 10 Apr 2019 12:32:37 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Apr 2019 19:20:46 +0000 (12:20 -0700)
commiteafc5c180ebdca8e8b465d6f86d64f730480493a
treeeebf7ab0e43d4ac498ad5039315bfb8e750cc13d
parent1d8401ddc0ccc8f388e7fe34ec061944e63a92ad
net: caif: avoid using qdisc_qlen()

Such helper does not cope correctly with NOLOCK qdiscs.
In the following patches we will move back qlen to per CPU
values for such qdiscs, so qdisc_qlen_sum() is not an option,
too.
Instead, use qlen only for lock qdiscs, and always set
flow off for NOLOCK qdiscs with a not empty tx queue.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_dev.c