kernel-hacking-2024-linux-s.../net/tipc
Richard Alpe d0796d1ef6 tipc: convert legacy nl bearer dump to nl compat
Introduce a framework for dumping netlink data from the new netlink
API and formatting it to the old legacy API format. This is done by
looping the dump data and calling a format handler for each entity, in
this case a bearer.

We dump until either all data is dumped or we reach the limited buffer
size of the legacy API. Remember, the legacy API doesn't scale.

In this commit we convert TIPC_CMD_GET_BEARER_NAMES to use the compat
layer.

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-09 13:20:47 -08:00
..
addr.c tipc: make tipc node address support net namespace 2015-01-12 16:24:33 -05:00
addr.h tipc: make tipc node address support net namespace 2015-01-12 16:24:33 -05:00
bcast.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
bcast.h tipc: eliminate race condition at multicast reception 2015-02-05 16:00:03 -08:00
bearer.c tipc: convert legacy nl bearer dump to nl compat 2015-02-09 13:20:47 -08:00
bearer.h tipc: convert legacy nl bearer dump to nl compat 2015-02-09 13:20:47 -08:00
config.c tipc: convert legacy nl bearer dump to nl compat 2015-02-09 13:20:47 -08:00
config.h tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
core.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
core.h tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
discover.c tipc: reduce usage of context info in socket and link 2015-02-05 16:00:01 -08:00
discover.h tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
eth_media.c
ib_media.c
Kconfig tipc: convert tipc reference table to use generic rhashtable 2015-01-08 19:47:14 -08:00
link.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
link.h tipc: resolve race problem at unicast message reception 2015-02-05 16:00:02 -08:00
log.c
Makefile tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
msg.c tipc: resolve race problem at unicast message reception 2015-02-05 16:00:02 -08:00
msg.h tipc: eliminate race condition at multicast reception 2015-02-05 16:00:03 -08:00
name_distr.c tipc: resolve race problem at unicast message reception 2015-02-05 16:00:02 -08:00
name_distr.h tipc: resolve race problem at unicast message reception 2015-02-05 16:00:02 -08:00
name_table.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
name_table.h tipc: eliminate race condition at multicast reception 2015-02-05 16:00:03 -08:00
net.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
net.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
netlink.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
netlink.h tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
netlink_compat.c tipc: convert legacy nl bearer dump to nl compat 2015-02-09 13:20:47 -08:00
node.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
node.h tipc: eliminate race condition at multicast reception 2015-02-05 16:00:03 -08:00
server.c tipc: make subscriber server support net namespace 2015-01-12 16:24:33 -05:00
server.h tipc: make subscriber server support net namespace 2015-01-12 16:24:33 -05:00
socket.c tipc: move and rename the legacy nl api to "nl compat" 2015-02-09 13:20:47 -08:00
socket.h tipc: eliminate race condition at multicast reception 2015-02-05 16:00:03 -08:00
subscr.c tipc: make subscriber server support net namespace 2015-01-12 16:24:33 -05:00
subscr.h tipc: make subscriber server support net namespace 2015-01-12 16:24:33 -05:00
sysctl.c