Skip to content
  1. Mar 31, 2021
    • 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
  2. Mar 30, 2021