1. 17 Jan, 2023 1 commit
    • Hangbin Liu's avatar
      sched: add new attr TCA_EXT_WARN_MSG to report tc extact message · 0349b877
      Hangbin Liu authored
      We will report extack message if there is an error via netlink_ack(). But
      if the rule is not to be exclusively executed by the hardware, extack is not
      passed along and offloading failures don't get logged.
      
      In commit 81c7288b ("sched: cls: enable verbose logging") Marcelo
      made cls could log verbose info for offloading failures, which helps
      improving Open vSwitch debuggability when using flower offloading.
      
      It would also be helpful if userspace monitor tools, like "tc monitor",
      could log this kind of message, as it doesn't require vswitchd log level
      adjusment. Let's add a new tc attributes to report the extack message so
      the monitor program could receive the failures. e.g.
      
        # tc monitor
        added chain dev enp3s0f1np1 parent ffff: chain 0
        added filter dev enp3s0f1np1 ingress protocol all pref 49152 flower chain 0 handle 0x1
          ct_state +trk+new
          not_in_hw
                action order 1: gact action drop
                 random type none pass val 0
                 index 1 ref 1 bind 1
      
        Warning: mlx5_core: matching on ct_state +new isn't supported.
      
      In this patch I only report the extack message on add/del operations.
      It doesn't look like we need to report the extack message on get/dump
      operations.
      
      Note this message not only reporte to multicast groups, it could also
      be reported unicast, which may affect the current usersapce tool's behaivor.
      Suggested-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
      Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
      Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      Link: https://lore.kernel.org/r/20230113034353.2766735-1-liuhangbin@gmail.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      0349b877
  2. 16 Jan, 2023 37 commits
  3. 14 Jan, 2023 2 commits
    • Jakub Kicinski's avatar
      Merge branch 'mlxbf_gige-add-bluefield-3-support' · 298bfe27
      Jakub Kicinski authored
      David Thompson says:
      
      ====================
      mlxbf_gige: add BlueField-3 support
      
      This patch series adds driver logic to the "mlxbf_gige"
      Ethernet driver in order to support the third generation
      BlueField SoC (BF3).  The existing "mlxbf_gige" driver is
      extended with BF3-specific logic and run-time decisions
      are made by the driver depending on the SoC generation
      (BF2 vs. BF3).
      
      The BF3 SoC is similar to BF2 SoC with regards to transmit
      and receive packet processing:
             * Driver rings usage; consumer & producer indices
             * Single queue for receive and transmit
             * DMA operation
      
      The differences between BF3 and BF2 SoC are:
             * In addition to supporting 1Gbps interface speed, the BF3 SoC
               adds support for 10Mbps and 100Mbps interface speeds
             * BF3 requires SerDes config logic to support its SGMII interface
             * BF3 adds support for "ethtool -s" for interface speed config
             * BF3 utilizes different MDIO logic for accessing the
               board-level PHY device
      
      Testing
        - Successful build of kernel for ARM64, ARM32, X86_64
        - Tested ARM64 build on FastModels, Palladium, SoC
      ====================
      
      Link: https://lore.kernel.org/r/20230112202609.21331-1-davthompson@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      298bfe27
    • David Thompson's avatar
      mlxbf_gige: fix white space in mlxbf_gige_eth_ioctl · e1cc8ce4
      David Thompson authored
      This patch fixes the white space issue raised by checkpatch:
      CHECK: Alignment should match open parenthesis
      +static int mlxbf_gige_eth_ioctl(struct net_device *netdev,
      +                              struct ifreq *ifr, int cmd)
      Signed-off-by: default avatarDavid Thompson <davthompson@nvidia.com>
      Signed-off-by: default avatarAsmaa Mnebhi <asmaa@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e1cc8ce4