netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v1 00/17] tipc: new compat layer for the legacy NL API
@ 2015-02-09  8:50 richard.alpe
  2015-02-09  8:50 ` [PATCH net-next v1 01/17] tipc: move and rename the legacy nl api to "nl compat" richard.alpe
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: richard.alpe @ 2015-02-09  8:50 UTC (permalink / raw)
  To: netdev; +Cc: tipc-discussion

From: Richard Alpe <richard.alpe@ericsson.com>

This is a compatibility / transcoding layer for the old netlink API.
It relies on the new netlink API to collect data or perform actions
(dumpit / doit).

The main benefit of this compat layer is that it removes a lot of
complex code from the tipc core as only the new API needs to be able
harness data or perform actions. I.e. the compat layer isn't concerned
with locking or how the internal data-structures look. As long as the
new API stays relatively intact the compat layer should be fine.

The main challenge in this compat layer is the randomness of the legacy
API. Some commands send binary data and some send ASCII data, some are
very picky in optimizing there buffer sizes and some just don't care.
Most legacy commands put there data in a single TLV (data container) but some
segment the data into multiple TLV's. This list of randomness goes on and on..

Richard Alpe (17):
  tipc: move and rename the legacy nl api to "nl compat"
  tipc: convert legacy nl bearer dump to nl compat
  tipc: convert legacy nl bearer enable/disable to nl compat
  tipc: convert legacy nl link stat to nl compat
  tipc: convert legacy nl link dump to nl compat
  tipc: convert legacy nl link prop set to nl compat
  tipc: convert legacy nl link stat reset to nl compat
  tipc: convert legacy nl name table dump to nl compat
  tipc: convert legacy nl socket dump to nl compat
  tipc: convert legacy nl media dump to nl compat
  tipc: convert legacy nl node dump to nl compat
  tipc: convert legacy nl node addr set to nl compat
  tipc: convert legacy nl net id set to nl compat
  tipc: convert legacy nl net id get to nl compat
  tipc: convert legacy nl stats show to nl compat
  tipc: nl compat add noop and remove legacy nl framework
  tipc: remove tipc_snprintf

 include/uapi/linux/tipc_config.h |   20 +
 net/tipc/Makefile                |    6 +-
 net/tipc/bcast.c                 |   45 +-
 net/tipc/bcast.h                 |    1 -
 net/tipc/bearer.c                |   86 +--
 net/tipc/bearer.h                |    5 -
 net/tipc/config.c                |  332 ------------
 net/tipc/config.h                |   67 ---
 net/tipc/core.c                  |   10 +-
 net/tipc/core.h                  |    3 -
 net/tipc/link.c                  |  325 +-----------
 net/tipc/link.h                  |    8 -
 net/tipc/log.c                   |   55 --
 net/tipc/name_table.c            |  190 +------
 net/tipc/name_table.h            |    2 -
 net/tipc/net.c                   |    6 +-
 net/tipc/netlink.c               |   67 +--
 net/tipc/netlink.h               |    4 +-
 net/tipc/netlink_compat.c        | 1084 ++++++++++++++++++++++++++++++++++++++
 net/tipc/node.c                  |  131 +----
 net/tipc/node.h                  |    4 -
 net/tipc/socket.c                |   90 +---
 net/tipc/socket.h                |    1 -
 23 files changed, 1147 insertions(+), 1395 deletions(-)
 delete mode 100644 net/tipc/config.c
 delete mode 100644 net/tipc/config.h
 delete mode 100644 net/tipc/log.c
 create mode 100644 net/tipc/netlink_compat.c

-- 
2.1.4


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-02-09 21:21 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09  8:50 [PATCH net-next v1 00/17] tipc: new compat layer for the legacy NL API richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 01/17] tipc: move and rename the legacy nl api to "nl compat" richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 02/17] tipc: convert legacy nl bearer dump to nl compat richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 03/17] tipc: convert legacy nl bearer enable/disable " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 04/17] tipc: convert legacy nl link stat " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 05/17] tipc: convert legacy nl link dump " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 06/17] tipc: convert legacy nl link prop set " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 07/17] tipc: convert legacy nl link stat reset " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 08/17] tipc: convert legacy nl name table dump " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 09/17] tipc: convert legacy nl socket " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 10/17] tipc: convert legacy nl media " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 11/17] tipc: convert legacy nl node " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 12/17] tipc: convert legacy nl node addr set " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 13/17] tipc: convert legacy nl net id " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 14/17] tipc: convert legacy nl net id get " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 15/17] tipc: convert legacy nl stats show " richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 16/17] tipc: nl compat add noop and remove legacy nl framework richard.alpe
2015-02-09  8:50 ` [PATCH net-next v1 17/17] tipc: remove tipc_snprintf richard.alpe
2015-02-09 21:21 ` [PATCH net-next v1 00/17] tipc: new compat layer for the legacy NL API David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).