]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: missing entries in name table of publications
authorHoang Le <hoang.h.le@dektech.com.au>
Tue, 9 Apr 2019 07:59:24 +0000 (14:59 +0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 05:58:09 +0000 (22:58 -0700)
commitde5e549318f96cf0d256050981fca1a612358138
tree87f1f58b3ea8e776661438e651f35c199de65b6c
parent9fbcde1c04e0f49bb8d5e4ecf2ef5d5733ccdf81
tipc: missing entries in name table of publications

When binding multiple services with specific type 1Ki, 2Ki..,
this leads to some entries in the name table of publications
missing when listed out via 'tipc name show'.

The problem is at identify zero last_type conditional provided
via netlink. The first is initial 'type' when starting name table
dummping. The second is continuously with zero type (node state
service type). Then, lookup function failure to finding node state
service type in next iteration.

To solve this, adding more conditional to marked as dirty type and
lookup correct service type for the next iteration instead of select
the first service as initial 'type' zero.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c