Skip to content
  1. Mar 30, 2021
    • David S. Miller's avatar
      Merge tag 'linux-can-fixes-for-5.12-20210329' of... · f4c848db
      David S. Miller authored
      Merge tag 'linux-can-fixes-for-5.12-20210329' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
      
      
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can 2021-03-29
      
      this is a pull request of 3 patches for net/master.
      
      The two patch are by Oliver Hartkopp. He fixes length check in the
      proto_ops::getname callback for the CAN RAW, BCM and ISOTP protocols,
      which were broken by the introduction of the J1939 protocol.
      
      The last patch is by me and fixes the a BUILD_BUG_ON() check which
      triggers on ARCH=arm with CONFIG_AEABI unset.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f4c848db
    • David S. Miller's avatar
      Merge branch 'mlxsw-ecn-marking' · 2dce6987
      David S. Miller authored
      
      
      Ido Schimmel says:
      
      ====================
      mlxsw: spectrum: Fix ECN marking in tunnel decapsulation
      
      Patch #1 fixes a discrepancy between the software and hardware data
      paths with regards to ECN marking after decapsulation. See the changelog
      for a detailed description.
      
      Patch #2 extends the ECN decap test to cover all possible combinations
      of inner and outer ECN markings. The test passes over both data paths.
      
      v2:
      * Only set ECT(1) if inner is ECT(0)
      * Introduce a new helper to determine inner ECN. Share it between NVE
        and IP-in-IP tunnels
      * Extend the selftest
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2dce6987
    • Ido Schimmel's avatar
      selftests: forwarding: vxlan_bridge_1d: Add more ECN decap test cases · 4bfd0de5
      Ido Schimmel authored
      
      
      Test that all possible combinations of inner and outer ECN bits result
      in the correct inner ECN marking according to RFC 6040 4.2.
      
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4bfd0de5
    • Ido Schimmel's avatar
      mlxsw: spectrum: Fix ECN marking in tunnel decapsulation · 66167c31
      Ido Schimmel authored
      Cited commit changed the behavior of the software data path with regards
      to the ECN marking of decapsulated packets. However, the commit did not
      change other callers of __INET_ECN_decapsulate(), namely mlxsw. The
      driver is using the function in order to ensure that the hardware and
      software data paths act the same with regards to the ECN marking of
      decapsulated packets.
      
      The discrepancy was uncovered by commit 5aa3c334 ("selftests:
      forwarding: vxlan_bridge_1d: Fix vxlan ecn decapsulate value") that
      aligned the selftest to the new behavior. Without this patch the
      selftest passes when used with veth pairs, but fails when used with
      mlxsw netdevs.
      
      Fix this by instructing the device to propagate the ECT(1) mark from the
      outer header to the inner header when the inner header is ECT(0), for
      both NVE and IP-in-IP tunnels.
      
      A helper is added in order not to duplicate the code between both tunnel
      types.
      
      Fixes: b7237487
      
       ("tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040")
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Acked-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      66167c31
  2. Mar 29, 2021
  3. Mar 26, 2021