Skip to content

Get rid of RTA*() macros

Thomas Graf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7unix_diag: Do not use RTA_PUT() macrosnet/unix/diag.c+33 -470 replies
2/7sock_diag: Do not use RTA_PUT() macrosnet/core/sock_diag.c+3 -93 replies
3/7inet_diag: Do not use RTA_PUT() macrosnet/ipv4/inet_diag.c+53 -590 replies
4/7ipmr: Do not use RTA_PUT() macrosnet/ipv4/ipmr.c+14 -140 replies
5/7ip6mr: Do not use RTA_PUT() macrosnet/ipv6/ip6mr.c+3 -20 replies
6/7decnet: Do not use RTA_PUT() macrosnet/decnet/dn_route.c net/decnet/dn_table.c+79 -510 replies
7/7netlink: Get rid of obsolete rtnetlink macrosinclude/linux/rtnetlink.h net/core/rtnetlink.c net/decnet/dn_fib.c+8 -1423 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Get rid of RTA*() macros

This patchset gets rid of all the RTA_PUT() and RTA_GET() macros and makes use of the type-safe netlink API variants where applicable.

I did my best to test these patches but I do not own any decnet hardware so the decnet part is compile tested only.

Thomas Graf (7):
unix_diag: Do not use RTA_PUT() macros
sock_diag: Do not use RTA_PUT() macros
inet_diag: Do not use RTA_PUT() macros
ipmr: Do not use RTA_PUT() macros
ip6mr: Do not use RTA_PUT() macros
decnet: Do not use RTA_PUT() macros
netlink: Get rid of obsolete rtnetlink macros

 include/linux/rtnetlink.h |  129 ---------------------------------------------
 net/core/rtnetlink.c      |   13 -----
 net/core/sock_diag.c      |   12 +---
 net/decnet/dn_fib.c       |    8 +++
 net/decnet/dn_route.c     |   61 +++++++++++++--------
 net/decnet/dn_table.c     |   69 ++++++++++++++----------
 net/ipv4/inet_diag.c      |  112 ++++++++++++++++++--------------------
 net/ipv4/ipmr.c           |   28 +++++-----
 net/ipv6/ip6mr.c          |    5 +-
 net/unix/diag.c           |   80 ++++++++++++----------------
 10 files changed, 193 insertions(+), 324 deletions(-)
Signature · 1 line
1.7.7.6