netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute2 00/22] Support for stateless configuration (read from /etc and /usr)
@ 2023-07-19 18:50 Gioele Barabucci
  2023-07-19 18:50 ` [iproute2 01/22] Makefile: Rename CONFDIR to CONF_ETC_DIR Gioele Barabucci
                   ` (23 more replies)
  0 siblings, 24 replies; 32+ messages in thread
From: Gioele Barabucci @ 2023-07-19 18:50 UTC (permalink / raw)
  To: netdev; +Cc: Stephen Hemminger, Gioele Barabucci

Dear iproute2 maintainers,

this patch series adds support for the so called "stateless" configuration
pattern, i.e. reading the default configuration from /usr while allowing
overriding it in /etc, giving system administrators a way to define local
configuration without changing any distro-provided files.

In practice this means that each configuration file FOO is loaded
from /usr/lib/iproute2/FOO unless /etc/iproute2/FOO exists.

Gioele Barabucci (22):
  Makefile: Rename CONFDIR to CONF_ETC_DIR
  Makefile: Add CONF_USR_DIR for system-installed configuration files
  include/utils.h: Use /usr/lib/iproute2 as default CONF_USR_DIR
  tc/tc_util: Read class names from provided path, /etc/, /usr
  tc/m_ematch: Read ematch from /etc and /usr
  lib/bpf_legacy: bpf_hash_init: Relay returned value
  lib/bpf_legacy: Read bpf_pinning from /etc and /usr
  lib/rt_names: rtnl_hash_initialize: Relay returned value
  lib/rt_names: rtnl_tab_initialize: Relay returned value
  lib/rt_names: Read rt_protos from /etc and /usr
  lib/rt_names: Read rt_scopes from /etc and /usr
  lib/rt_names: Read rt_names from /etc and /usr
  lib/rt_names: Read rt_tables from /etc and /usr
  lib/rt_names: Read rt_dsfield from /etc and /usr
  lib/rt_names: Read group from /etc and /usr
  lib/rt_names: Read nl_protos from /etc and /usr
  lib/rt_names: Read rt_protos.d/* from /etc and /usr
  lib/rt_names: Read rt_protos.d/* using rtnl_tab_initialize_dir
  lib/rt_names: Read protodown_reasons.d/* using rtnl_tab_initialize_dir
  lib/rt_names: Read rt_tables.d/* using rtnl_hash_initialize_dir
  man: Document lookup of configuration files in /etc and /usr
  Makefile: Install default configuration files in /usr

 Makefile                 |  10 +-
 include/utils.h          |   7 +-
 lib/bpf_legacy.c         |  12 ++-
 lib/rt_names.c           | 217 ++++++++++++++++++++++++---------------
 man/man8/Makefile        |   3 +-
 man/man8/ip-address.8.in |   5 +-
 man/man8/ip-link.8.in    |  12 ++-
 man/man8/ip-route.8.in   |  43 +++++---
 tc/m_ematch.c            |  17 ++-
 tc/tc_util.c             |  18 +++-
 10 files changed, 214 insertions(+), 130 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2023-07-25  6:01 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 18:50 [iproute2 00/22] Support for stateless configuration (read from /etc and /usr) Gioele Barabucci
2023-07-19 18:50 ` [iproute2 01/22] Makefile: Rename CONFDIR to CONF_ETC_DIR Gioele Barabucci
2023-07-19 18:50 ` [iproute2 02/22] Makefile: Add CONF_USR_DIR for system-installed configuration files Gioele Barabucci
2023-07-19 18:50 ` [iproute2 03/22] include/utils.h: Use /usr/lib/iproute2 as default CONF_USR_DIR Gioele Barabucci
2023-07-19 18:50 ` [iproute2 04/22] tc/tc_util: Read class names from provided path, /etc/, /usr Gioele Barabucci
2023-07-20 10:10   ` Petr Machata
2023-07-20 10:44     ` Gioele Barabucci
2023-07-20 11:33       ` Petr Machata
2023-07-19 18:50 ` [iproute2 05/22] tc/m_ematch: Read ematch from /etc and /usr Gioele Barabucci
2023-07-20 11:49   ` Petr Machata
2023-07-19 18:50 ` [iproute2 06/22] lib/bpf_legacy: bpf_hash_init: Relay returned value Gioele Barabucci
2023-07-19 18:50 ` [iproute2 07/22] lib/bpf_legacy: Read bpf_pinning from /etc and /usr Gioele Barabucci
2023-07-19 18:50 ` [iproute2 08/22] lib/rt_names: rtnl_hash_initialize: Relay returned value Gioele Barabucci
2023-07-19 18:50 ` [iproute2 09/22] lib/rt_names: rtnl_tab_initialize: " Gioele Barabucci
2023-07-19 18:50 ` [iproute2 10/22] lib/rt_names: Read rt_protos from /etc and /usr Gioele Barabucci
2023-07-19 18:50 ` [iproute2 11/22] lib/rt_names: Read rt_scopes " Gioele Barabucci
2023-07-19 18:50 ` [iproute2 12/22] lib/rt_names: Read rt_names " Gioele Barabucci
2023-07-19 18:50 ` [iproute2 13/22] lib/rt_names: Read rt_tables " Gioele Barabucci
2023-07-19 18:50 ` [iproute2 14/22] lib/rt_names: Read rt_dsfield " Gioele Barabucci
2023-07-19 18:50 ` [iproute2 15/22] lib/rt_names: Read group " Gioele Barabucci
2023-07-19 18:51 ` [iproute2 16/22] lib/rt_names: Read nl_protos " Gioele Barabucci
2023-07-19 18:51 ` [iproute2 17/22] lib/rt_names: Read rt_protos.d/* " Gioele Barabucci
2023-07-19 18:51 ` [iproute2 18/22] lib/rt_names: Read rt_protos.d/* using rtnl_tab_initialize_dir Gioele Barabucci
2023-07-19 18:51 ` [iproute2 19/22] lib/rt_names: Read protodown_reasons.d/* " Gioele Barabucci
2023-07-19 18:51 ` [iproute2 20/22] lib/rt_names: Read rt_tables.d/* using rtnl_hash_initialize_dir Gioele Barabucci
2023-07-19 18:51 ` [iproute2 21/22] man: Document lookup of configuration files in /etc and /usr Gioele Barabucci
2023-07-19 18:51 ` [iproute2 22/22] Makefile: Install default configuration files in /usr Gioele Barabucci
2023-07-19 21:36 ` [iproute2 00/22] Support for stateless configuration (read from /etc and /usr) Stephen Hemminger
2023-07-20  6:05   ` Gioele Barabucci
2023-07-20 11:56     ` Petr Machata
2023-07-25  1:40 ` Stephen Hemminger
2023-07-25  6:01   ` Gioele Barabucci

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