1. 23 Dec, 2021 4 commits
    • Amit Cohen's avatar
      selftests: forwarding: Add VxLAN tests with a VLAN-unaware bridge for IPv6 · b07e9957
      Amit Cohen authored
      Add tests similar to vxlan_bridge_1d.sh and vxlan_bridge_1d_port_8472.sh.
      
      The tests set up a topology with three VxLAN endpoints: one
      "local", possibly offloaded, and two "remote", formed using veth pairs
      and likely purely software bridges. The "local" endpoint is connected to
      host systems by a VLAN-unaware bridge.
      
      Since VxLAN tunnels must be unique per namespace, each of the "remote"
      endpoints is in its own namespace. H3 forms the bridge between the three
      domains.
      
      Send IPv4 packets and IPv6 packets with IPv6 underlay.
      Use `TC_FLAG`, which is defined in `forwarding.config` file, for TC
      checks. `TC_FLAG` allows testing that on HW datapath, the traffic
      actually goes through HW.
      Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b07e9957
    • Amit Cohen's avatar
      selftests: lib.sh: Add PING_COUNT to allow sending configurable amount of packets · 0cd0b1f7
      Amit Cohen authored
      Currently `ping_do()` and `ping6_do()` send 10 packets.
      
      There are cases that it is not possible to catch only the interesting
      packets using tc rule, so then, it is possible to send many packets and
      verify that at least this amount of packets hit the rule.
      
      Add `PING_COUNT` variable, which is set to 10 by default, to allow tests
      sending more than 10 packets using the existing ping API.
      Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0cd0b1f7
    • Amit Cohen's avatar
      mlxsw: spectrum_flower: Make vlan_id limitation more specific · 70ec72d5
      Amit Cohen authored
      Spectrum ASICs do not support matching of VLAN ID at egress.
      Currently, mlxsw driver forbids matching of all VLAN related fields at
      egress, which is too strict check.
      
      For example, the following filter is not supported by the driver:
      $ tc filter add dev swpX egress protocol 802.1q pref 1 handle 101 flower
      vlan_ethtype ipv4 src_ip .. dst_ip .. skip_sw action pass
      Error: mlxsw_spectrum: vlan_id key is not supported on egress.
      We have an error talking to the kernel
      
      The filter above does not match on VLAN ID, but is bounced anyway.
      
      Make the check more specific, forbid only matching of 'vlan_id' at egress.
      Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      70ec72d5
    • Jakub Kicinski's avatar
      Merge tag 'mlx5-updates-2021-12-21' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 5de24da1
      Jakub Kicinski authored
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2021-12-21
      
      1) From Shay Drory: Devlink user knobs to control device's EQ size
      
      This series provides knobs which will enable users to
      minimize memory consumption of mlx5 Functions (PF/VF/SF).
      mlx5 exposes two new generic devlink params for EQ size
      configuration and uses devlink generic param max_macs.
      
      LINK: https://lore.kernel.org/netdev/20211208141722.13646-1-shayd@nvidia.com/
      
      2) From Tariq and Lama, allocate software channel objects and statistics
        of a mlx5 netdevice private data dynamically upon first demand to save on
        memory.
      
      * tag 'mlx5-updates-2021-12-21' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux:
        net/mlx5e: Take packet_merge params directly from the RX res struct
        net/mlx5e: Allocate per-channel stats dynamically at first usage
        net/mlx5e: Use dynamic per-channel allocations in stats
        net/mlx5e: Allow profile-specific limitation on max num of channels
        net/mlx5e: Save memory by using dynamic allocation in netdev priv
        net/mlx5e: Add profile indications for PTP and QOS HTB features
        net/mlx5e: Use bitmap field for profile features
        net/mlx5: Remove the repeated declaration
        net/mlx5: Let user configure max_macs generic param
        devlink: Clarifies max_macs generic devlink param
        net/mlx5: Let user configure event_eq_size param
        devlink: Add new "event_eq_size" generic device param
        net/mlx5: Let user configure io_eq_size param
        devlink: Add new "io_eq_size" generic device param
      ====================
      
      Link: https://lore.kernel.org/r/20211222031604.14540-1-saeed@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5de24da1
  2. 22 Dec, 2021 21 commits
  3. 21 Dec, 2021 15 commits