]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: sch_api: set an error msg when qdisc_alloc_handle() fails
authorIvan Vecera <ivecera@redhat.com>
Fri, 15 Feb 2019 10:23:25 +0000 (11:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 23:39:08 +0000 (15:39 -0800)
commit224d06914b2a7446eb9991bc9db2171ba794128b
tree4b19975ebd45fc02386707667516ea6e3c4a3453
parent524d57a55b14ba1d3caac1c892f766761189fecd
net: sched: sch_api: set an error msg when qdisc_alloc_handle() fails

This patch sets an error message in extack when the number of qdisc
handles exceeds the maximum. Also the error-code ENOSPC is more
appropriate than ENOMEM in this situation.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reported-by: Li Shuang <shuali@redhat.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c