1. 23 Dec, 2021 2 commits
    • 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 17 commits