From: Jakub Kicinski <kuba@kernel.org>
To: netdev@vger.kernel.org
Cc: andrew@lunn.ch, johannes@sipsolutions.net, jiri@resnulli.us,
mkubecek@suse.cz, dsahern@kernel.org, pablo@netfilter.org,
Jakub Kicinski <kuba@kernel.org>
Subject: [RFC net-next 0/9] genetlink: support per-command policy dump
Date: Wed, 30 Sep 2020 17:05:09 -0700 [thread overview]
Message-ID: <20201001000518.685243-1-kuba@kernel.org> (raw)
Hi!
The objective of this series is to dump ethtool policies
to be able to tell which flags are supported by the kernel.
Ethtool policies are per command.
First patch here is included for completeness - it's already
in net, but other patches won't apply cleanly without it.
The series adds new set of "light" ops which don't have all
the callbacks, and won't have the policy. Most of families
are then moved to these ops. This gives us 4096B in savings
on an allyesconfig build (not counting the growth that would
have happened when policy is added):
text data bss dec hex
244415581 227958581 78372980 550747142 20d3bc06
244415581 227962677 78372980 550751238 20d3cc06
Next 5 patches deal the dumping per-op policy.
Jakub Kicinski (9):
genetlink: add missing kdoc for validation flags
genetlink: reorg struct genl_family
genetlink: add small version of ops
genetlink: move to smaller ops wherever possible
genetlink: add a structure for dump state
genetlink: use .start callback for dumppolicy
genetlink: bring back per op policy
genetlink: use per-op policy for CTRL_CMD_GETPOLICY
genetlink: allow dumping command-specific policy
drivers/block/nbd.c | 6 +-
drivers/net/gtp.c | 6 +-
drivers/net/ieee802154/mac802154_hwsim.c | 6 +-
drivers/net/macsec.c | 6 +-
drivers/net/team/team.c | 6 +-
drivers/net/wireless/mac80211_hwsim.c | 6 +-
drivers/target/target_core_user.c | 6 +-
drivers/thermal/thermal_netlink.c | 6 +-
fs/dlm/netlink.c | 6 +-
include/net/genetlink.h | 40 +++-
include/uapi/linux/genetlink.h | 1 +
kernel/taskstats.c | 6 +-
net/batman-adv/netlink.c | 6 +-
net/core/devlink.c | 6 +-
net/core/drop_monitor.c | 6 +-
net/hsr/hsr_netlink.c | 6 +-
net/ieee802154/netlink.c | 6 +-
net/ipv4/fou.c | 6 +-
net/ipv4/tcp_metrics.c | 6 +-
net/l2tp/l2tp_netlink.c | 6 +-
net/mptcp/pm_netlink.c | 6 +-
net/ncsi/ncsi-netlink.c | 6 +-
net/netfilter/ipvs/ip_vs_ctl.c | 6 +-
net/netlabel/netlabel_calipso.c | 6 +-
net/netlabel/netlabel_cipso_v4.c | 6 +-
net/netlabel/netlabel_mgmt.c | 6 +-
net/netlabel/netlabel_unlabeled.c | 6 +-
net/netlink/genetlink.c | 225 ++++++++++++++++-------
net/openvswitch/conntrack.c | 6 +-
net/openvswitch/datapath.c | 24 +--
net/openvswitch/meter.c | 6 +-
net/psample/psample.c | 6 +-
net/tipc/netlink_compat.c | 6 +-
net/wimax/stack.c | 6 +-
net/wireless/nl80211.c | 5 +
35 files changed, 304 insertions(+), 171 deletions(-)
--
2.26.2
next reply other threads:[~2020-10-01 0:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-01 0:05 Jakub Kicinski [this message]
2020-10-01 0:05 ` [RFC net-next 1/9] genetlink: add missing kdoc for validation flags Jakub Kicinski
2020-10-01 0:05 ` [RFC net-next 2/9] genetlink: reorg struct genl_family Jakub Kicinski
2020-10-01 7:34 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 3/9] genetlink: add small version of ops Jakub Kicinski
2020-10-01 7:40 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 4/9] genetlink: move to smaller ops wherever possible Jakub Kicinski
2020-10-01 7:42 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 5/9] genetlink: add a structure for dump state Jakub Kicinski
2020-10-01 7:48 ` Johannes Berg
2020-10-01 8:04 ` Michal Kubecek
2020-10-01 0:05 ` [RFC net-next 6/9] genetlink: use .start callback for dumppolicy Jakub Kicinski
2020-10-01 7:49 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 7/9] genetlink: bring back per op policy Jakub Kicinski
2020-10-01 7:53 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 8/9] genetlink: use per-op policy for CTRL_CMD_GETPOLICY Jakub Kicinski
2020-10-01 7:56 ` Johannes Berg
2020-10-01 0:05 ` [RFC net-next 9/9] genetlink: allow dumping command-specific policy Jakub Kicinski
2020-10-01 7:59 ` Johannes Berg
2020-10-01 15:41 ` Jakub Kicinski
2020-10-01 16:00 ` Johannes Berg
2020-10-01 16:24 ` Jakub Kicinski
2020-10-01 16:57 ` Johannes Berg
2020-10-01 17:09 ` Jakub Kicinski
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=20201001000518.685243-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=andrew@lunn.ch \
--cc=dsahern@kernel.org \
--cc=jiri@resnulli.us \
--cc=johannes@sipsolutions.net \
--cc=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.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 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).