1. 28 1月, 2022 1 次提交
  2. 07 1月, 2022 2 次提交
  3. 15 12月, 2021 1 次提交
    • A
      mlxsw: spectrum: Add hash table for IPv6 address mapping · e846efe2
      Amit Cohen 提交于
      The device supports forwarding entries such as routes and FDBs that
      perform tunnel (e.g., VXLAN, IP-in-IP) encapsulation or decapsulation.
      When the underlay is IPv6, these entries do not encode the 128 bit IPv6
      address used for encapsulation / decapsulation. Instead, these entries
      encode a 24 bit pointer to an array called KVDL where the IPv6 address
      is stored.
      
      Currently, only IP-in-IP with IPv6 underlay is supported, but subsequent
      patches will add support for VxLAN with IPv6 underlay. To avoid
      duplicating the logic required to store and retrieve these IPv6
      addresses, introduce a hash table that will store the mapping between
      IPv6 addresses and their KVDL index.
      Signed-off-by: NAmit Cohen <amcohen@nvidia.com>
      Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e846efe2
  4. 01 12月, 2021 2 次提交
  5. 30 11月, 2021 1 次提交
  6. 23 11月, 2021 2 次提交
  7. 19 11月, 2021 1 次提交
  8. 26 10月, 2021 1 次提交
  9. 19 10月, 2021 1 次提交
  10. 14 10月, 2021 2 次提交
  11. 12 10月, 2021 1 次提交
  12. 05 10月, 2021 1 次提交
  13. 15 9月, 2021 3 次提交
  14. 14 9月, 2021 5 次提交
  15. 23 8月, 2021 1 次提交
    • A
      mlxsw: spectrum: Add infrastructure for parsing configuration · 2d91f080
      Amit Cohen 提交于
      Spectrum ASICs have a configurable limit on how deep into the packet
      they parse. By default, the limit is 96 bytes.
      
      There are several cases where this parsing depth is not enough and there
      is a need to increase it. Currently, increasing parsing depth is
      maintained as part of VxLAN module, because the MPRS register which
      configures parsing depth also configures UDP destination port number
      used for VxLAN encapsulation and decapsulation.
      
      Add an API for increasing parsing depth as part of spectrum.c code, so
      that it will be possible to use it from other modules. In addition, add
      an API for setting UDP destination port and protect it using a dedicated
      lock for saving parsing configurations. The lock is needed as not all
      the callers hold RTNL lock.
      
      Maintain a counter for increased parsing depth consumers. For first
      consumer subscription, increase the parsing depth and for last consumer
      unsubscription, set parsing depth to default value.
      Signed-off-by: NAmit Cohen <amcohen@nvidia.com>
      Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2d91f080
  16. 28 7月, 2021 1 次提交
    • A
      dev_ioctl: split out ndo_eth_ioctl · a7605370
      Arnd Bergmann 提交于
      Most users of ndo_do_ioctl are ethernet drivers that implement
      the MII commands SIOCGMIIPHY/SIOCGMIIREG/SIOCSMIIREG, or hardware
      timestamping with SIOCSHWTSTAMP/SIOCGHWTSTAMP.
      
      Separate these from the few drivers that use ndo_do_ioctl to
      implement SIOCBOND, SIOCBR and SIOCWANDEV commands.
      
      This is a purely cosmetic change intended to help readers find
      their way through the implementation.
      
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Jay Vosburgh <j.vosburgh@gmail.com>
      Cc: Veaceslav Falico <vfalico@gmail.com>
      Cc: Andy Gospodarek <andy@greyhouse.net>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Vivien Didelot <vivien.didelot@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Vladimir Oltean <olteanv@gmail.com>
      Cc: Leon Romanovsky <leon@kernel.org>
      Cc: linux-rdma@vger.kernel.org
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NJason Gunthorpe <jgg@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a7605370
  17. 18 5月, 2021 1 次提交
  18. 30 3月, 2021 1 次提交
  19. 23 3月, 2021 1 次提交
  20. 18 3月, 2021 2 次提交
  21. 17 3月, 2021 1 次提交
    • I
      mlxsw: spectrum: Track sampling triggers in a hash table · 1b9fc42e
      Ido Schimmel 提交于
      Currently, mlxsw supports a single sampling trigger type (i.e., received
      packet). When sampling is configured on an ingress port, the sampling
      parameters (e.g., pointer to the psample group) are stored as an
      attribute of the port, so that they could be passed to
      psample_sample_packet() when a sampled packet is trapped to the CPU.
      
      Subsequent patches are going to add more types of sampling triggers,
      making it difficult to maintain the current scheme.
      
      Instead, store all the active sampling triggers with their associated
      parameters in a hash table. That way, more trigger types can be easily
      added.
      
      The next patch will flip mlxsw to use the hash table instead of the
      current scheme.
      Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: NJiri Pirko <jiri@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b9fc42e
  22. 15 3月, 2021 3 次提交
  23. 12 3月, 2021 1 次提交
  24. 11 3月, 2021 2 次提交
  25. 15 12月, 2020 2 次提交