commit | 5c90128a47d7c96cc4dd2c4ad26a0fed1ab60940 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <kuba@kernel.org> | Sun Oct 18 14:31:50 2020 -0700 |
committer | Michal Kubecek <mkubecek@suse.cz> | Mon Oct 19 09:45:55 2020 +0200 |
tree | f9f1111f5e58ca85f1e36db826c59be063bddd75 | |
parent | 8d36270be3c06b99eba281ccf341ebfab555c6b6 [diff] |
netlink: use policy dumping to check if stats flag is supported Older kernels don't support statistics, to avoid retries make use of netlink policy dumps to figure out which flags kernel actually supports. v3: - s/ctx/policy_ctx/ - save the flags in nl_context to be able to reuse them, and not have to return errors and values from the policy get function Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Michal Kubecek <mkubecek@suse.cz>