mbox series

[0/2] net: Use nlmsg_{multicast, unicast} that contain if statement

Message ID 20210713123654.31174-1-yajun.deng@linux.dev (mailing list archive)
Headers show
Series net: Use nlmsg_{multicast, unicast} that contain if statement | expand

Message

Yajun Deng July 13, 2021, 12:36 p.m. UTC
Patch1: use nlmsg_{multicast, unicast} instead of netlink_
{broadcast,unicast} in rtnetlink.
Patch2: The caller no need deal with the if statements and use
the rename function.

Yajun Deng (2):
  rtnetlink: use nlmsg_{multicast, unicast} instead of
    netlink_{broadcast,unicast}
  net/sched: Remove unnecessary judgment statements

 include/linux/rtnetlink.h |  2 +-
 net/core/rtnetlink.c      | 13 +++++++------
 net/sched/act_api.c       | 20 ++++++--------------
 net/sched/cls_api.c       | 28 +++++++++++-----------------
 net/sched/sch_api.c       | 18 ++++++------------
 5 files changed, 31 insertions(+), 50 deletions(-)