Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Yajun Deng <yajun.deng@linux.dev>
To: davem@davemloft.net, kuba@kernel.org, jhs@mojatatu.com,
	xiyou.wangcong@gmail.com, jiri@resnulli.us,
	johannes.berg@intel.com, avagin@gmail.com,
	ryazanov.s.a@gmail.com, vladimir.oltean@nxp.com,
	roopa@cumulusnetworks.com, yajun.deng@linux.dev,
	zhudi21@huawei.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] net: Deal with if statement in rtnetlink_send()
Date: Thu, 15 Jul 2021 20:12:56 +0800	[thread overview]
Message-ID: <20210715121258.18385-1-yajun.deng@linux.dev> (raw)

Patch1: use nlmsg_notify() in rtnetlink_send(), so that the caller 
wouldn't deal with if statement.
Patch2: Remove unnecessary if statement.


Yajun Deng (2):
  rtnetlink: use nlmsg_notify() in rtnetlink_send()
  net/sched: Remove unnecessary if statement

 net/core/rtnetlink.c |  9 +--------
 net/sched/act_api.c  | 12 ++----------
 net/sched/cls_api.c  | 15 ++++-----------
 net/sched/sch_api.c  | 10 ++--------
 4 files changed, 9 insertions(+), 37 deletions(-)

-- 
2.32.0


             reply	other threads:[~2021-07-15 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15 12:12 Yajun Deng [this message]
2021-07-15 12:12 ` [PATCH v2 1/2] rtnetlink: use nlmsg_notify() " Yajun Deng
2021-07-16 17:50 ` [PATCH v2 0/2] net: Deal with if statement " patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210715121258.18385-1-yajun.deng@linux.dev \
    --to=yajun.deng@linux.dev \
    --cc=avagin@gmail.com \
    --cc=davem@davemloft.net \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=johannes.berg@intel.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=roopa@cumulusnetworks.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=vladimir.oltean@nxp.com \
    --cc=xiyou.wangcong@gmail.com \
    --cc=zhudi21@huawei.com \
    --subject='Re: [PATCH v2 0/2] net: Deal with if statement in rtnetlink_send()' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).