1. 05 Apr, 2021 8 commits
  2. 03 Apr, 2021 3 commits
  3. 31 Mar, 2021 10 commits
  4. 30 Mar, 2021 19 commits
    • Florian Westphal's avatar
      netfilter: nf_log_netdev: merge with nf_log_syslog · 1510618e
      Florian Westphal authored
      Provide netdev family support from the nf_log_syslog module.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      1510618e
    • Florian Westphal's avatar
      netfilter: nf_log_ipv6: merge with nf_log_syslog · f5466caa
      Florian Westphal authored
      This removes the nf_log_ipv6 module, the functionality is now
      provided by nf_log_syslog.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      f5466caa
    • Florian Westphal's avatar
      netfilter: nf_log_arp: merge with nf_log_syslog · f11d61e7
      Florian Westphal authored
      similar to previous change: nf_log_syslog now covers ARP logging
      as well, the old nf_log_arp module is removed.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      f11d61e7
    • Florian Westphal's avatar
      netfilter: nf_log_ipv4: rename to nf_log_syslog · db3187ae
      Florian Westphal authored
      Netfilter has multiple log modules:
       nf_log_arp
       nf_log_bridge
       nf_log_ipv4
       nf_log_ipv6
       nf_log_netdev
       nfnetlink_log
       nf_log_common
      
      With the exception of nfnetlink_log (packet is sent to userspace for
      dissection/logging), all of them log to the kernel ringbuffer.
      
      This is the first part of a series to merge all modules except
      nfnetlink_log into a single module: nf_log_syslog.
      
      This allows to reduce code.  After the series, only two log modules remain:
      nfnetlink_log and nf_log_syslog. The latter provides the same
      functionality as the old per-af log modules.
      
      This renames nf_log_ipv4 to nf_log_syslog.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      db3187ae
    • Yang Yingliang's avatar
      net: mhi: remove pointless conditional before kfree_skb() · cda1893e
      Yang Yingliang authored
      It already has null pointer check in kfree_skb(),
      remove pointless pointer check before kfree_skb().
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cda1893e
    • Wong Vee Khee's avatar
      stmmac: intel: add cross time-stamping freq difference adjustment · 1c137d47
      Wong Vee Khee authored
      Cross time-stamping mechanism used in certain instance of Intel mGbE
      may run at different clock frequency in comparison to the clock
      frequency used by processor, so we introduce cross T/S frequency
      adjustment to ensure TSC calculation is correct when processor got the
      cross time-stamps.
      Signed-off-by: default avatarWong Vee Khee <vee.khee.wong@linux.intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1c137d47
    • Shixin Liu's avatar
      mISDN: Use LIST_HEAD() for list_head · 5979415d
      Shixin Liu authored
      There's no need to declare a list and then init it manually,
      just use the LIST_HEAD() macro.
      Signed-off-by: default avatarShixin Liu <liushixin2@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5979415d
    • Shixin Liu's avatar
      mISDN: Use DEFINE_SPINLOCK() for spinlock · 77053fb7
      Shixin Liu authored
      spinlock can be initialized automatically with DEFINE_SPINLOCK()
      rather than explicitly calling spin_lock_init().
      
      Changelog:
      From v1:
      1. fix the mistake reported by kernel test robot.
      Signed-off-by: default avatarShixin Liu <liushixin2@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      77053fb7
    • David S. Miller's avatar
      Merge branch 'rfc8335-probe' · 212ee4b5
      David S. Miller authored
      Andreas Roeseler says:
      
      ====================
      add support for RFC 8335 PROBE
      
      The popular utility ping has several severe limitations, such as the
      inability to query specific interfaces on a node and requiring
      bidirectional connectivity between the probing and probed interfaces.
      RFC 8335 attempts to solve these limitations by creating the new utility
      PROBE which is a specialized ICMP message that makes use of the ICMP
      Extension Structure outlined in RFC 4884.
      
      This patchset adds definitions for the ICMP Extended Echo Request and
      Reply (PROBE) types for both IPV4 and IPV6, adds a sysctl to enable
      responses to PROBE messages, expands the list of supported ICMP messages
      to accommodate PROBE types, adds ipv6_dev_find into ipv6_stubs, and adds
      functionality to respond to PROBE requests.
      
      Changes:
      v1 -> v2:
       - Add AFI definitions
       - Switch to functions such as dev_get_by_name and ip_dev_find to lookup
         net devices
      
      v2 -> v3:
      Suggested by Willem de Bruijn <willemdebruijn.kernel@gmail.com>
       - Add verification of incoming messages before looking up netdev
       - Add prefix for PROBE specific defined variables
       - Use proc_dointvec_minmax with zero and one for sysctl
       - Create struct icmp_ext_echo_iio for parsing incoming packets
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
       - Include net/addrconf.h library for ipv6_dev_find
      
      v3 -> v4:
       - Use in_addr instead of __be32 for storing IPV4 addresses
       - Use IFNAMSIZ to statically allocate space for name in
         icmp_ext_echo_iio
      Suggested by Willem de Bruijn <willemdebruijn.kernel@gmail.com>
       - Use skb_header_pointer to verify fields in incoming message
       - Add check to ensure that extobj_hdr.length is valid
       - Check to ensure object payload is padded with ASCII NULL characters
         when probing by name, as specified by RFC 8335
       - Statically allocate buff using IFNAMSIZ
       - Add rcu blocking around ipv6_dev_find
       - Use __in_dev_get_rcu to access IPV4 addresses of identified
         net_device
       - Remove check for ICMPV6 PROBE types
      
      v4 -> v5:
       - Statically allocate buff to size IFNAMSIZ on declaration
       - Remove goto probe in favor of single branch
       - Remove strict check for incoming PROBE request padding to nearest
         32-bit boundary
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      
      v5 -> v6:
       - Add documentation for icmp_echo_enable_probe sysctl
       - Remove RCU locking around ipv6_dev_find()
       - Assign iio based on ctype
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      212ee4b5
    • Andreas Roeseler's avatar
      icmp: add response to RFC 8335 PROBE messages · d329ea5b
      Andreas Roeseler authored
      Modify the icmp_rcv function to check PROBE messages and call icmp_echo
      if a PROBE request is detected.
      
      Modify the existing icmp_echo function to respond ot both ping and PROBE
      requests.
      
      This was tested using a custom modification to the iputils package and
      wireshark. It supports IPV4 probing by name, ifindex, and probing by
      both IPV4 and IPV6 addresses. It currently does not support responding
      to probes off the proxy node (see RFC 8335 Section 2).
      
      The modification to the iputils package is still in development and can
      be found here: https://github.com/Juniper-Clinic-2020/iputils.git. It
      supports full sending functionality of PROBE requests, but currently
      does not parse the response messages, which is why Wireshark is required
      to verify the sent and recieved PROBE messages. The modification adds
      the ``-e'' flag to the command which allows the user to specify the
      interface identifier to query the probed host. An example usage would be
      <./ping -4 -e 1 [destination]> to send a PROBE request of ifindex 1 to the
      destination node.
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d329ea5b
    • Andreas Roeseler's avatar
      ipv6: add ipv6_dev_find to stubs · 504a4011
      Andreas Roeseler authored
      Add ipv6_dev_find to ipv6_stub to allow lookup of net_devices by IPV6
      address in net/ipv4/icmp.c.
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      504a4011
    • Andreas Roeseler's avatar
      net: add support for sending RFC 8335 PROBE messages · 08baf54f
      Andreas Roeseler authored
      Modify the ping_supported function to support PROBE message types. This
      allows tools such as the ping command in the iputils package to be
      modified to send PROBE requests through the existing framework for
      sending ping requests.
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      08baf54f
    • Andreas Roeseler's avatar
      net: add sysctl for enabling RFC 8335 PROBE messages · f1b8fa9f
      Andreas Roeseler authored
      Section 8 of RFC 8335 specifies potential security concerns of
      responding to PROBE requests, and states that nodes that support PROBE
      functionality MUST be able to enable/disable responses and that
      responses MUST be disabled by default
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f1b8fa9f
    • Andreas Roeseler's avatar
      ICMPV6: add support for RFC 8335 PROBE · 750f4fc2
      Andreas Roeseler authored
      Add definitions for the ICMPV6 type of Extended Echo Request and
      Extended Echo Reply, as defined by sections 2 and 3 of RFC 8335.
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      750f4fc2
    • Andreas Roeseler's avatar
      icmp: add support for RFC 8335 PROBE · 2b246b25
      Andreas Roeseler authored
      Add definitions for PROBE ICMP types and codes.
      
      Add AFI definitions for IP and IPV6 as specified by IANA
      
      Add a struct to represent the additional header when probing by IP
      address (ctype == 3) for use in parsing incoming PROBE messages
      
      Add a struct to represent the entire Interface Identification Object
      (IIO) section of an incoming PROBE packet
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2b246b25
    • Andre Edich's avatar
      net: phy: lan87xx: fix access to wrong register of LAN87xx · fdb5cc6a
      Andre Edich authored
      The function lan87xx_config_aneg_ext was introduced to configure
      LAN95xxA but as well writes to undocumented register of LAN87xx.
      This fix prevents that access.
      
      The function lan87xx_config_aneg_ext gets more suitable for the new
      behavior name.
      Reported-by: default avatarMåns Rullgård <mans@mansr.com>
      Fixes: 05b35e7e ("smsc95xx: add phylib support")
      Signed-off-by: default avatarAndre Edich <andre.edich@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fdb5cc6a
    • David S. Miller's avatar
      Merge tag 'linux-can-next-for-5.13-20210330' of... · 9c0ee085
      David S. Miller authored
      Merge tag 'linux-can-next-for-5.13-20210330' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can-next 2021-03-30
      
      this is a pull request of 39 patches for net-next/master.
      
      The first two patches update the MAINTAINERS file. One is by me and
      removes Dan Murphy from the from m_can and tcan4x5x. The other one is
      by Pankaj Sharma and updates the maintainership of the m-can mmio
      driver.
      
      The next three patches are by me and update the CAN echo skb handling.
      
      Vincent Mailhol provides 5 patches where Transmitter Delay
      Compensation is added CAN bittiming calculation is cleaned up.
      
      The next patch is by me and adds a missing HAS_IOMEM to the grcan
      driver.
      
      Michal Simek's patch for the xilinx driver add dev_err_probe()
      support.
      
      Arnd Bergmann's patch for the ucan driver fixes a compiler warning.
      
      Stephane Grosjean provides 3 patches for the peak USB drivers, which
      add ethtool set_phys_id and CAN one-shot mode.
      
      Xulin Sun's patch removes a not needed return check in the m-can
      driver. Torin Cooper-Bennun provides 3 patches for the m-can driver
      that add rx-offload support to ensure that skbs are sent from softirq
      context. Wan Jiabing's patch for the tcan4x5x driver removes a
      duplicate include.
      
      The next 6 patches are by me and target the mcp251xfd driver. They add
      devcoredump support, simplify the UINC handling, and add HW timestamp
      support.
      
      The remaining 12 patches target the c_can driver. The first 6 are by
      me and do generic checkpatch related cleanup work. Dario Binacchi's
      patches bring some cleanups and increase the number of usable message
      objects from 16 to 64.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9c0ee085
    • David S. Miller's avatar
      Merge tag 'mlx5-updates-2021-03-29' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 402a66ed
      David S. Miller authored
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2021-03-29
      
      Coexistence of CQE compression and HW PTP time-stamp:
      
      From Aya this series improves mlx5 netdev driver to allow
      both mlx5 CQE compression (RX descriptor compression, that saves on PCI
      transaction) and HW time-stamp PTP to co-exists.
      
      Prior to this series both features were mutually exclusive due to the
      nature of CQE compression which reduces the size of RX descriptor for
      the price of trimming some data, such as the time-stamp.
      
      In order to allow CQE compression when PTP time stamping is enabled,
      We enable it on the regular performance critical RX queues which will
      service all the data path traffic that is not PTP.
      
      PTP traffic will be re-directed to dedicated RX queues on which we will
      not enable CQE compression and thus keep the time-stamp intact.
      
      Having both features is critical for systems with low PCI BW, e.g.
      Multi-Host.
      
      The series will be adding:
      1) Infrastructure to create a dedicated RX queue to service the PTP traffic
      2) Flow steering plumbing to capture PTP traffic both UDP packets with
       destination port 319 and L2 packets with ethertype 0x88F7
      3) Steer PTP traffic to the dedicated RX queue.
      4) The feature will be enabled when PTP is being configured via the
         already existing PTP IOCTL when CQE compression is active, otherwise
         no change to the driver flow.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      402a66ed
    • Dario Binacchi's avatar
      can: c_can: add support to 64 message objects · 132f2d45
      Dario Binacchi authored
      D_CAN controller supports 16, 32, 64 or 128 message objects, comparing
      to 32 on C_CAN. AM335x/AM437x Sitara processors and DRA7 SOC all
      instantiate a D_CAN controller with 64 message objects, as described
      in the "DCAN features" subsection of the CAN chapter of their
      technical reference manuals.
      
      The driver policy has been kept unchanged, and as in the previous
      version, the first half of the message objects is used for reception
      and the second for transmission.
      
      The I/O load is increased only in the case of 64 message objects,
      keeping it unchanged in the case of 32. Two 32-bit read accesses are
      in fact required, which however remained at 16-bit for configurations
      with 32 message objects.
      
      Link: https://lore.kernel.org/r/20210302215435.18286-7-dariobin@libero.itSigned-off-by: default avatarDario Binacchi <dariobin@libero.it>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      132f2d45