Skip to content
  1. Dec 20, 2023
  2. Dec 19, 2023
    • Paolo Abeni's avatar
      Merge branch 'devlink-introduce-notifications-filtering' · 62ed78f3
      Paolo Abeni authored
      
      
      Jiri Pirko says:
      
      ====================
      devlink: introduce notifications filtering
      
      From: Jiri Pirko <jiri@nvidia.com>
      
      Currently the user listening on a socket for devlink notifications
      gets always all messages for all existing devlink instances and objects,
      even if he is interested only in one of those. That may cause
      unnecessary overhead on setups with thousands of instances present.
      
      User is currently able to narrow down the devlink objects replies
      to dump commands by specifying select attributes.
      
      Allow similar approach for notifications providing user a new
      notify-filter-set command to select attributes with values
      the notification message has to match. In that case, it is delivered
      to the socket.
      
      Note that the filtering is done per-socket, so multiple users may
      specify different selection of attributes with values.
      
      This patchset initially introduces support for following attributes:
      DEVLINK_ATTR_BUS_NAME
      DEVLINK_ATTR_DEV_NAME
      DEVLINK_ATTR_PORT_INDEX
      
      Patches #1 - #4 are preparations in devlink code, patch #3 is
                      an optimization done on the way.
      Patches #5 - #7 are preparations in netlink and generic netlink code.
      Patch #8 is the main one in this set implementing of
               the notify-filter-set command and the actual
               per-socket filtering.
      Patch #9 extends the infrastructure allowing to filter according
               to a port index.
      
      Example:
      $ devlink mon port pci/0000:08:00.0/32768
      [port,new] pci/0000:08:00.0/32768: type notset flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,new] pci/0000:08:00.0/32768: type eth flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,new] pci/0000:08:00.0/32768: type eth netdev eth3 flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,new] pci/0000:08:00.0/32768: type eth netdev eth3 flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,new] pci/0000:08:00.0/32768: type eth flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,new] pci/0000:08:00.0/32768: type notset flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      [port,del] pci/0000:08:00.0/32768: type notset flavour pcisf controller 0 pfnum 0 sfnum 107 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached roce enable
      ====================
      
      Link: https://lore.kernel.org/r/20231216123001.1293639-1-jiri@resnulli.us
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      62ed78f3
    • Jiri Pirko's avatar
      devlink: extend multicast filtering by port index · ded6f77c
      Jiri Pirko authored
      
      
      Expose the previously introduced notification multicast messages
      filtering infrastructure and allow the user to select messages using
      port index.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      ded6f77c
    • Jiri Pirko's avatar
      devlink: add a command to set notification filter and use it for multicasts · 13b127d2
      Jiri Pirko authored
      
      
      Currently the user listening on a socket for devlink notifications
      gets always all messages for all existing instances, even if he is
      interested only in one of those. That may cause unnecessary overhead
      on setups with thousands of instances present.
      
      User is currently able to narrow down the devlink objects replies
      to dump commands by specifying select attributes.
      
      Allow similar approach for notifications. Introduce a new devlink
      NOTIFY_FILTER_SET which the user passes the select attributes. Store
      these per-socket and use them for filtering messages
      during multicast send.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      13b127d2
    • Jiri Pirko's avatar
      genetlink: introduce helpers to do filtered multicast · 971b4ad8
      Jiri Pirko authored
      
      
      Currently it is possible for netlink kernel user to pass custom
      filter function to broadcast send function netlink_broadcast_filtered().
      However, this is not exposed to multicast send and to generic
      netlink users.
      
      Extend the api and introduce a netlink helper nlmsg_multicast_filtered()
      and a generic netlink helper genlmsg_multicast_netns_filtered()
      to allow generic netlink families to specify filter function
      while sending multicast messages.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      971b4ad8
    • Jiri Pirko's avatar
      netlink: introduce typedef for filter function · 403863e9
      Jiri Pirko authored
      
      
      Make the code using filter function a bit nicer by consolidating the
      filter function arguments using typedef.
      
      Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      403863e9
    • Jiri Pirko's avatar
      genetlink: introduce per-sock family private storage · a7311324
      Jiri Pirko authored
      
      
      Introduce an xarray for Generic netlink family to store per-socket
      private. Initialize this xarray only if family uses per-socket privs.
      
      Introduce genl_sk_priv_get() to get the socket priv pointer for a family
      and initialize it in case it does not exist.
      Introduce __genl_sk_priv_get() to obtain socket priv pointer for a
      family under RCU read lock.
      
      Allow family to specify the priv size, init() and destroy() callbacks.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      a7311324
    • Jiri Pirko's avatar
      devlink: introduce a helper for netlink multicast send · 5648de0b
      Jiri Pirko authored
      
      
      Introduce a helper devlink_nl_notify_send() so each object notification
      function does not have to call genlmsg_multicast_netns() with the same
      arguments.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      5648de0b
    • Jiri Pirko's avatar
      devlink: send notifications only if there are listeners · cddbff47
      Jiri Pirko authored
      
      
      Introduce devlink_nl_notify_need() helper and using it to check at the
      beginning of notification functions to avoid overhead of composing
      notification messages in case nobody listens.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      cddbff47
    • Jiri Pirko's avatar
      devlink: introduce __devl_is_registered() helper and use it instead of xa_get_mark() · 11280dde
      Jiri Pirko authored
      
      
      Introduce __devl_is_registered() which does not assert on devlink
      instance lock and use it in notifications which may be called
      without devlink instance lock held.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      11280dde
    • Jiri Pirko's avatar
      devlink: use devl_is_registered() helper instead xa_get_mark() · 337ad364
      Jiri Pirko authored
      
      
      Instead of checking the xarray mark directly using xa_get_mark() helper
      use devl_is_registered() helper which wraps it up. Note that there are
      couple more users of xa_get_mark() left which are going to be handled
      by the next patch.
      
      Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      337ad364
    • Jakub Kicinski's avatar
      bpf: Use nla_ok() instead of checking nla_len directly · 2130c519
      Jakub Kicinski authored
      nla_len may also be too short to be sane, in which case after
      recent changes nla_len() will return a wrapped value.
      
      Fixes: 172db56d
      
       ("netlink: Return unsigned value for nla_len()")
      Reported-by: default avatar <syzbot+f43a23b6e622797c7a28@syzkaller.appspotmail.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Link: https://lore.kernel.org/bpf/20231218231904.260440-1-kuba@kernel.org
      2130c519
    • Paolo Abeni's avatar
      Merge branch 'add-pf-vf-mailbox-support' · f7dd48ea
      Paolo Abeni authored
      
      
      Shinas Rasheed says:
      
      ====================
      add PF-VF mailbox support
      
      This patchset aims to add PF-VF mailbox support, its related
      version support, and relevant control net support for immediate
      functionalities such as firmware notifications to VF.
      
      Changes:
      V6:
        - Fixed 1/4 patch to apply to top of net-next merged with net fixes
      
      V5: https://lore.kernel.org/all/20231214164536.2670006-1-srasheed@marvell.com/
        - Refactored patches to cut out redundant changes in 1/4 patch.
      
      V4: https://lore.kernel.org/all/20231213035816.2656851-1-srasheed@marvell.com/
        - Included tag [1/4] in subject of first patch of series which was
          lost in V3
      
      V3: https://lore.kernel.org/all/20231211063355.2630028-1-srasheed@marvell.com/
        - Corrected error cleanup logic for PF-VF mbox setup
        - Removed double inclusion of types.h header file in octep_pfvf_mbox.c
      
      V2: https://lore.kernel.org/all/20231209081450.2613561-1-srasheed@marvell.com/
        - Removed unused variable in PATCH 1/4
      
      V1: https://lore.kernel.org/all/20231208070352.2606192-1-srasheed@marvell.com/
      ====================
      
      Link: https://lore.kernel.org/r/20231215181425.2681426-1-srasheed@marvell.com
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      f7dd48ea
    • Shinas Rasheed's avatar
      octeon_ep: support firmware notifications for VFs · 4ebb86a9
      Shinas Rasheed authored
      
      
      Notifications from firmware to vf has to pass through PF
      control mbox and via PF-VF mailboxes. The notifications have to
      be parsed out from the control mbox and passed to the
      PF-VF mailbox in order to reach the corresponding VF.
      Version compatibility should also be checked before messages
      are passed to the mailboxes.
      
      Signed-off-by: default avatarShinas Rasheed <srasheed@marvell.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      4ebb86a9
    • Shinas Rasheed's avatar
      octeon_ep: control net framework to support VF offloads · e28db8cb
      Shinas Rasheed authored
      
      
      Inquire firmware on supported offloads, as well as convey offloads
      enabled dynamically to firmware for the VFs. Implement control net API
      to support the same.
      
      Signed-off-by: default avatarShinas Rasheed <srasheed@marvell.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      e28db8cb
    • Shinas Rasheed's avatar
      octeon_ep: PF-VF mailbox version support · c130e589
      Shinas Rasheed authored
      
      
      Add PF-VF mailbox initial version support
      
      Signed-off-by: default avatarShinas Rasheed <srasheed@marvell.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      c130e589
    • Shinas Rasheed's avatar
      octeon_ep: add PF-VF mailbox communication · cde29af9
      Shinas Rasheed authored
      
      
      Implement mailbox communication between PF and VFs.
      PF-VF mailbox is used for all control commands from VF to PF and
      asynchronous notification messages from PF to VF.
      
      Signed-off-by: default avatarShinas Rasheed <srasheed@marvell.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      cde29af9
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · c49b292d
      Jakub Kicinski authored
      
      
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf-next 2023-12-18
      
      This PR is larger than usual and contains changes in various parts
      of the kernel.
      
      The main changes are:
      
      1) Fix kCFI bugs in BPF, from Peter Zijlstra.
      
      End result: all forms of indirect calls from BPF into kernel
      and from kernel into BPF work with CFI enabled. This allows BPF
      to work with CONFIG_FINEIBT=y.
      
      2) Introduce BPF token object, from Andrii Nakryiko.
      
      It adds an ability to delegate a subset of BPF features from privileged
      daemon (e.g., systemd) through special mount options for userns-bound
      BPF FS to a trusted unprivileged application. The design accommodates
      suggestions from Christian Brauner and Paul Moore.
      
      Example:
      $ sudo mkdir -p /sys/fs/bpf/token
      $ sudo mount -t bpf bpffs /sys/fs/bpf/token \
                   -o delegate_cmds=prog_load:MAP_CREATE \
                   -o delegate_progs=kprobe \
                   -o delegate_attachs=xdp
      
      3) Various verifier improvements and fixes, from Andrii Nakryiko, Andrei Matei.
      
       - Complete precision tracking support for register spills
       - Fix verification of possibly-zero-sized stack accesses
       - Fix access to uninit stack slots
       - Track aligned STACK_ZERO cases as imprecise spilled registers.
         It improves the verifier "instructions processed" metric from single
         digit to 50-60% for some programs.
       - Fix verifier retval logic
      
      4) Support for VLAN tag in XDP hints, from Larysa Zaremba.
      
      5) Allocate BPF trampoline via bpf_prog_pack mechanism, from Song Liu.
      
      End result: better memory utilization and lower I$ miss for calls to BPF
      via BPF trampoline.
      
      6) Fix race between BPF prog accessing inner map and parallel delete,
      from Hou Tao.
      
      7) Add bpf_xdp_get_xfrm_state() kfunc, from Daniel Xu.
      
      It allows BPF interact with IPSEC infra. The intent is to support
      software RSS (via XDP) for the upcoming ipsec pcpu work.
      Experiments on AWS demonstrate single tunnel pcpu ipsec reaching
      line rate on 100G ENA nics.
      
      8) Expand bpf_cgrp_storage to support cgroup1 non-attach, from Yafang Shao.
      
      9) BPF file verification via fsverity, from Song Liu.
      
      It allows BPF progs get fsverity digest.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (164 commits)
        bpf: Ensure precise is reset to false in __mark_reg_const_zero()
        selftests/bpf: Add more uprobe multi fail tests
        bpf: Fail uprobe multi link with negative offset
        selftests/bpf: Test the release of map btf
        s390/bpf: Fix indirect trampoline generation
        selftests/bpf: Temporarily disable dummy_struct_ops test on s390
        x86/cfi,bpf: Fix bpf_exception_cb() signature
        bpf: Fix dtor CFI
        cfi: Add CFI_NOSEAL()
        x86/cfi,bpf: Fix bpf_struct_ops CFI
        x86/cfi,bpf: Fix bpf_callback_t CFI
        x86/cfi,bpf: Fix BPF JIT call
        cfi: Flip headers
        selftests/bpf: Add test for abnormal cnt during multi-kprobe attachment
        selftests/bpf: Don't use libbpf_get_error() in kprobe_multi_test
        selftests/bpf: Add test for abnormal cnt during multi-uprobe attachment
        bpf: Limit the number of kprobes when attaching program to multiple kprobes
        bpf: Limit the number of uprobes when attaching program to multiple uprobes
        bpf: xdp: Register generic_kfunc_set with XDP programs
        selftests/bpf: utilize string values for delegate_xxx mount options
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20231219000520.34178-1-alexei.starovoitov@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c49b292d
    • Jakub Kicinski's avatar
      Merge tag 'wireless-next-2023-12-18' of... · 0ee28c9a
      Jakub Kicinski authored
      
      Merge tag 'wireless-next-2023-12-18' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next
      
      Kalle Valo says:
      
      ====================
      wireless-next patches for v6.8
      
      The second features pull request for v6.8. A bigger one this time with
      changes both to stack and drivers. We have a new Wifi band RFI (WBRF)
      mitigation feature for which we pulled an immutable branch shared with
      other subsystems. And, as always, other new features and bug fixes all
      over.
      
      Major changes:
      
      cfg80211/mac80211
       * AMD ACPI based Wifi band RFI (WBRF) mitigation feature
       * Basic Service Set (BSS) usage reporting
       * TID to link mapping support
       * mac80211 hardware flag to disallow puncturing
      
      iwlwifi
       * new debugfs file fw_dbg_clear
      
      mt76
       * NVMEM EEPROM improvements
       * mt7996 Extremely High Throughpu (EHT) improvements
       * mt7996 Wireless Ethernet Dispatcher (WED) support
       * mt7996 36-bit DMA support
      
      ath12k
       * support one MSI vector
       * WCN7850: support AP mode
      
      * tag 'wireless-next-2023-12-18' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next: (207 commits)
        wifi: mt76: mt7996: Use DECLARE_FLEX_ARRAY() and fix -Warray-bounds warnings
        wifi: ath11k: workaround too long expansion sparse warnings
        Revert "wifi: ath12k: use ATH12K_PCI_IRQ_DP_OFFSET for DP IRQ"
        wifi: rt2x00: remove useless code in rt2x00queue_create_tx_descriptor()
        wifi: rtw89: only reset BB/RF for existing WiFi 6 chips while starting up
        wifi: rtw89: add DBCC H2C to notify firmware the status
        wifi: rtw89: mac: add suffix _ax to MAC functions
        wifi: rtw89: mac: add flags to check if CMAC and DMAC are enabled
        wifi: rtw89: 8922a: add power on/off functions
        wifi: rtw89: add XTAL SI for WiFi 7 chips
        wifi: rtw89: phy: print out RFK log with formatted string
        wifi: rtw89: parse and print out RFK log from C2H events
        wifi: rtw89: add C2H event handlers of RFK log and report
        wifi: rtw89: load RFK log format string from firmware file
        wifi: rtw89: fw: add version field to BB MCU firmware element
        wifi: rtw89: fw: load TX power track tables from fw_element
        wifi: mwifiex: configure BSSID consistently when starting AP
        wifi: mwifiex: add extra delay for firmware ready
        wifi: mac80211: sta_info.c: fix sentence grammar
        wifi: mac80211: rx.c: fix sentence grammar
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20231218163900.C031DC433C9@smtp.kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0ee28c9a
    • Andrii Nakryiko's avatar
      bpf: Ensure precise is reset to false in __mark_reg_const_zero() · 8e432e61
      Andrii Nakryiko authored
      
      
      It is safe to always start with imprecise SCALAR_VALUE register.
      Previously __mark_reg_const_zero() relied on caller to reset precise
      mark, but it's very error prone and we already missed it in a few
      places. So instead make __mark_reg_const_zero() reset precision always,
      as it's a safe default for SCALAR_VALUE. Explanation is basically the
      same as for why we are resetting (or rather not setting) precision in
      current state. If necessary, precision propagation will set it to
      precise correctly.
      
      As such, also remove a big comment about forward precision propagation
      in mark_reg_stack_read() and avoid unnecessarily setting precision to
      true after reading from STACK_ZERO stack. Again, precision propagation
      will correctly handle this, if that SCALAR_VALUE register will ever be
      needed to be precise.
      
      Reported-by: default avatarMaxim Mikityanskiy <maxtram95@gmail.com>
      Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
      Acked-by: default avatarMaxim Mikityanskiy <maxtram95@gmail.com>
      Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Link: https://lore.kernel.org/bpf/20231218173601.53047-1-andrii@kernel.org
      8e432e61
    • Jakub Kicinski's avatar
      Merge branch 'tools-net-ynl-add-sub-message-support-to-ynl' · 509afc74
      Jakub Kicinski authored
      
      
      Donald Hunter says:
      
      ====================
      tools/net/ynl: Add 'sub-message' support to ynl
      
      This patchset adds a 'sub-message' attribute type to the netlink-raw
      schema and implements it in ynl. This provides support for kind-specific
      options attributes as used in rt_link and tc raw netlink families.
      
      A description of the new 'sub-message' attribute type and the
      corresponding sub-message definitions is provided in patch 3.
      
      The patchset includes updates to the rt_link spec and a new tc spec that
      make use of the new 'sub-message' attribute type.
      
      As mentioned in patch 4, encode support is not yet implemented in ynl
      and support for sub-message selectors at a different nest level from the
      key attribute is not yet supported. I plan to work on these in follow-up
      patches.
      
      Patches 1 is code cleanup in ynl
      Patches 2-4 add sub-message support to the schema and ynl with
      documentation updates.
      Patch 5 adds binary and pad support to structs in netlink-raw.
      Patches 6-8 contain specs that use the sub-message attribute type.
      Patches 9-13 update ynl-gen-rst and its make target
      ====================
      
      Link: https://lore.kernel.org/r/20231215093720.18774-1-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      509afc74
    • Donald Hunter's avatar
      tools/net/ynl-gen-rst: Remove extra indentation from generated docs · 9b0aa224
      Donald Hunter authored
      
      
      The output from ynl-gen-rst.py has extra indentation that causes extra
      <blockquote> elements to be generated in the HTML output.
      
      Reduce the indentation so that sphinx doesn't generate unnecessary
      <blockquote> elements.
      
      Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
      Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
      Link: https://lore.kernel.org/r/20231215093720.18774-14-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      9b0aa224
    • Donald Hunter's avatar
      tools/net/ynl-gen-rst: Remove bold from attribute-set headings · e9d7c592
      Donald Hunter authored
      
      
      The generated .rst for attribute-sets currently uses a sub-sub-heading
      for each attribute, with the attribute name in bold. This makes
      attributes stand out more than the attribute-set sub-headings they are
      part of.
      
      Remove the bold markup from attribute sub-sub-headings.
      
      Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
      Link: https://lore.kernel.org/r/20231215093720.18774-13-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e9d7c592
    • Donald Hunter's avatar
      tools/net/ynl-gen-rst: Sort the index of generated netlink specs · e8c32339
      Donald Hunter authored
      
      
      The index of netlink specs was being generated unsorted. Sort the output
      before generating the index entries.
      
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
      Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
      Link: https://lore.kernel.org/r/20231215093720.18774-12-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e8c32339
    • Donald Hunter's avatar
      tools/net/ynl-gen-rst: Add sub-messages to generated docs · 6235b3d8
      Donald Hunter authored
      
      
      Add a section for sub-messages to the generated .rst files.
      
      Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
      Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
      Link: https://lore.kernel.org/r/20231215093720.18774-11-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      6235b3d8
    • Donald Hunter's avatar
      doc/netlink: Regenerate netlink .rst files if ynl-gen-rst changes · 646158f2
      Donald Hunter authored
      
      
      Add ynl-gen-rst.py to the dependencies for the netlink .rst files in the
      doc Makefile so that the docs get regenerated if the ynl-gen-rst.py
      script is modified. Use $(Q) to honour V=1 in the rules that run
      ynl-gen-rst.py
      
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
      Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
      Link: https://lore.kernel.org/r/20231215093720.18774-10-donald.hunter@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      646158f2