]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: update the queue counts in the unregistration path
authorAntoine Tenart <atenart@kernel.org>
Tue, 7 Dec 2021 14:57:24 +0000 (15:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Dec 2021 02:36:32 +0000 (18:36 -0800)
commitd6c4b036683641d9ea45ead7820ed2dc9cda66ef
tree130182bb4d56afd748931c26f3f2d8308dab794d
parentb5525f152862efec401c8ab1cba39bbe56ec74bb
net-sysfs: update the queue counts in the unregistration path

When updating Rx and Tx queue kobjects, the queue count should always be
updated to match the queue kobjects count. This was not done in the net
device unregistration path, fix it. Tracking all queue count updates
will allow in a following up patch to detect illegal updates.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/net-sysfs.c