1. 08 3月, 2020 2 次提交
    • S
      net/mlx5: Introduce TLS and IPSec objects enums · bd673da6
      Saeed Mahameed 提交于
      Expose the TLS encryption key general object type enum correctly,
      and add the IPSec encryption key general object type enum.
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      bd673da6
    • V
      net/mlx5: Introduce egress acl forward-to-vport capability · 86f5d0f3
      Vu Pham 提交于
      Add HCA_CAP.egress_acl_forward_to_vport field to check whether HW
      supports e-switch vport's egress acl to forward packets to other
      e-switch vport or not.
      
      By default E-Switch egress ACL forwards eswitch vports egress packets
      to their corresponding NIC/VF vports.
      
      With this cap enabled, the driver is allowed to alter this behavior
      and forward packets to arbitrary NIC/VF vports with the following
      limitations:
      
         a. Multiple processing paths are supported if all of the following
            conditions are met:
            - HCA_CAP.egress_acl_forward_to_vport is set ==1.
            - A destination of type Flow Table only appears once, as the
              last destination in the list.
            - Vport destination is supported if
              HCA_CAP.egress_acl_forward_to_vport==1. Vport must not be
              the Uplink.
         b. Flow_tag not supported.
         c. This table is only applicable after an FDB table is created.
         d. Push VLAN action is not supported.
         e. Pop VLAN action cannot be added concurrently to this table and
            FDB table.
      
      This feature will be used during port failover in bonding scenario
      where two VFs representors are bonded to handle failover egress traffic
      (VM's ingress/receive traffic).
      Signed-off-by: NVu Pham <vuhuong@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      86f5d0f3
  2. 05 3月, 2020 1 次提交
    • Y
      net/mlx5: Expose raw packet pacing APIs · 1326034b
      Yishai Hadas 提交于
      Expose raw packet pacing APIs to be used by DEVX based applications.
      The existing code was refactored to have a single flow with the new raw
      APIs.
      
      The new raw APIs considered the input of 'pp_rate_limit_context', uid,
      'dedicated', upon looking for an existing entry.
      
      This raw mode enables future device specification data in the raw
      context without changing the existing logic and code.
      
      The ability to ask for a dedicated entry gives control for application
      to allocate entries according to its needs.
      
      A dedicated entry may not be used by some other process and it also
      enables the process spreading its resources to some different entries
      for use different hardware resources as part of enforcing the rate.
      
      The counter per entry was changed to be u64 to prevent any option to
      overflow.
      Signed-off-by: NYishai Hadas <yishaih@mellanox.com>
      Acked-by: NSaeed Mahameed <saeedm@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      1326034b
  3. 07 2月, 2020 1 次提交
  4. 17 1月, 2020 9 次提交
  5. 11 1月, 2020 1 次提交
  6. 23 11月, 2019 1 次提交
  7. 30 10月, 2019 1 次提交
  8. 08 10月, 2019 1 次提交
  9. 24 9月, 2019 1 次提交
  10. 06 9月, 2019 1 次提交
  11. 02 9月, 2019 1 次提交
  12. 28 8月, 2019 1 次提交
  13. 21 8月, 2019 3 次提交
  14. 13 8月, 2019 1 次提交
  15. 09 8月, 2019 1 次提交
  16. 04 8月, 2019 1 次提交
  17. 02 8月, 2019 3 次提交
  18. 26 7月, 2019 1 次提交
  19. 12 7月, 2019 1 次提交
    • S
      net/mlx5e: Rx, Fix checksum calculation for new hardware · db849faa
      Saeed Mahameed 提交于
      CQE checksum full mode in new HW, provides a full checksum of rx frame.
      Covering bytes starting from eth protocol up to last byte in the received
      frame (frame_size - ETH_HLEN), as expected by the stack.
      
      Fixing up skb->csum by the driver is not required in such case. This fix
      is to avoid wrong checksum calculation in drivers which already support
      the new hardware with the new checksum mode.
      
      Fixes: 85327a9c ("net/mlx5: Update the list of the PCI supported devices")
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      db849faa
  20. 07 7月, 2019 1 次提交
    • M
      net/mlx5: Introduce VHCA tunnel device capability · 1dd7382b
      Max Gurtovoy 提交于
      When using the device emulation feature (introduced in Bluefield-1 SOC),
      a privileged function (the device emulation manager) will be able to
      create a channel to execute commands on behalf of the emulated function.
      
      This channel will be a general object of type VHCA_TUNNEL that will have
      a unique ID for each emulated function. This ID will be passed in each
      cmd that will be issued by the emulation SW in a well known offset in
      the command header.
      
      This channel is needed since the emulated function doesn't have a normal
      command interface to the HCA HW, but some basic configuration for that
      function is needed (e.g. initialize and enable the HCA). For that matter,
      a specific command-set was defined and only those commands will be issued
      by the HCA.
      Signed-off-by: NMax Gurtovoy <maxg@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      1dd7382b
  21. 05 7月, 2019 1 次提交
  22. 04 7月, 2019 3 次提交
  23. 02 7月, 2019 3 次提交
    • B
      net/mlx5: Don't handle VF func change if host PF is disabled · 5ccf2770
      Bodong Wang 提交于
      When ECPF eswitch manager is at offloads mode, it monitors functions
      changed event from host PF side and acts according to the number of
      VFs enabled/disabled.
      
      As ECPF and host PF work in two independent hosts, it's possible that
      host PF OS reboots but ECPF system is still kept on and continues
      monitoring events from host PF. When kernel from host PF side is
      booting, PCI iov driver does sriov_init and compute_max_vf_buses by
      iterating over all valid num of VFs. This triggers FLR and generates
      functions changed events, even though host PF HCA is not enabled at
      this time. However, ECPF is not aware of this information, and still
      handles these events as usual. ECPF system will see massive number of
      reps are created, but destroyed immediately once creation finished.
      
      To eliminate this noise, a bit is added to host parameter context to
      indicate host PF is disabled. ECPF will not handle the VF changed
      event if this bit is set.
      Signed-off-by: NBodong Wang <bodong@mellanox.com>
      Reviewed-by: NDaniel Jurgens <danielj@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      5ccf2770
    • S
      net/mlx5: Added MCQI and MCQS registers' description to ifc · a82e0b5b
      Shay Agroskin 提交于
      Given a fw component index, the MCQI register allows us to query
      this component's information (e.g. its version and capabilities).
      
      Given a fw component index, the MCQS register allows us to query the
      status of a fw component, including its type and state
      (e.g. PRESET/IN_USE).
      It can be used to find the index of a component of a specific type, by
      sequentially increasing the component index, and querying each time the
      type of the returned component.
      If max component index is reached, 'last_index_flag' is set by the HCA.
      
      These registers' description was added to query the running and pending
      fw version of the HCA.
      Signed-off-by: NShay Agroskin <shayag@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      a82e0b5b
    • P
      net/mlx5: Add hardware definitions for sub functions · 1759d322
      Parav Pandit 提交于
      Update mlx5 device interface data structures for:
      1. New command definitions for allocating, deallocating SF
      2. Query SF partition
      3. Eswitch SF fields
      4. HCA CAP SF fields
      5. Extend Eswitch functions command for SF
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NVu Pham <vuhuong@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      1759d322