All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: netdev@vger.kernel.org
Cc: Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH 0/5] genetlink: complete policy dumping
Date: Fri,  2 Oct 2020 11:09:39 +0200	[thread overview]
Message-ID: <20201002090944.195891-1-johannes@sipsolutions.net> (raw)

Hi,

So ... Jakub added per-op policy retrieval, so you could retrieve the
policy for a single op.

This then adds - as discussed - support for dumping *everything*, which
has basically first an [op] -> [policy-idx] mapping, followed by all the
policies. When a single op is requested, you get a convenience [op] -> 0
mapping entry, but you might as well ignore it since the policy for the
requested op is guaranteed to be 0.

This series applies on top of Jakub's series, but I've fixed up his to
apply on top of my bugfix (let me know how you want to handle that).

For convenience, I've pushed the entire series here:

https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git/log/?h=genetlink-op-policy-export
(I hope the cache will be invalidated soon, but anyway, in mac80211-next
genetlink-op-policy-export branch)

I didn't want to repost Jakub's slightly modified patches just for that.
Depending on how we decide to deal with the conflicts, we may or may not
need that series.

johannes



             reply	other threads:[~2020-10-02  9:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02  9:09 Johannes Berg [this message]
2020-10-02  9:09 ` [PATCH 1/5] netlink: simplify netlink_policy_dump_start() prototype Johannes Berg
2020-10-02 15:31   ` Jakub Kicinski
2020-10-02 20:02     ` Johannes Berg
2020-10-02  9:09 ` [PATCH 2/5] netlink: compare policy more accurately Johannes Berg
2020-10-02 15:39   ` Jakub Kicinski
2020-10-02  9:09 ` [PATCH 3/5] netlink: rework policy dump to support multiple policies Johannes Berg
2020-10-02 15:39   ` Jakub Kicinski
2020-10-02 20:11     ` Johannes Berg
2020-10-02 20:13     ` Johannes Berg
2020-10-02 20:37       ` Jakub Kicinski
2020-10-02 20:38         ` Johannes Berg
2020-10-02 20:42           ` Jakub Kicinski
2020-10-02  9:09 ` [PATCH 4/5] genetlink: factor skb preparation out of ctrl_dumppolicy() Johannes Berg
2020-10-02 15:42   ` Jakub Kicinski
2020-10-02  9:09 ` [PATCH 5/5] genetlink: properly support per-op policy dumping Johannes Berg

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=20201002090944.195891-1-johannes@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.