1. 25 May, 2016 1 commit
  2. 13 May, 2016 9 commits
  3. 28 Apr, 2016 3 commits
  4. 21 Mar, 2016 4 commits
    • Eli Cohen's avatar
      IB/core: Add interfaces to control VF attributes · 50174a7f
      Eli Cohen authored
      Following the practice exercised for network devices which allow the PF
      net device to configure attributes of its virtual functions, we
      introduce the following functions to be used by IPoIB which is the
      network driver implementation for IB devices.
      
      ib_set_vf_link_state - set the policy for a VF link. More below.
      ib_get_vf_config - read configuration information of a VF
      ib_get_vf_stats - read VF statistics
      ib_set_vf_guid - set the node or port GUID of a VF
      
      Also add an indication in the device cap flags that indicates that this
      IB devices is based on a virtual function.
      
      A VF shares the physical port with the PF and other VFs. When setting
      the link state we have three options:
      
      1. Auto - in this mode, the virtual port follows the state of the
         physical port and becomes active only if the physical port's state is
         active. In all other cases it remains in a Down state.
      2. Down - sets the state of the virtual port to Down
      3. Up - causes the virtual port to transition into Initialize state if
         it was not already in this state. A virtualization aware subnet manager
         can then bring the state of the port into the Active state.
      Signed-off-by: default avatarEli Cohen <eli@mellanox.com>
      Reviewed-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      50174a7f
    • Eli Cohen's avatar
      IB/core: Support accessing SA in virtualized environment · a0c1b2a3
      Eli Cohen authored
      Per the ongoing standardisation process, when virtual HCAs are present
      in a network, traffic is routed based on a destination GID. In order to
      access the SA we use the well known SA GID.
      
      We also add a GRH required boolean field to the port attributes which is
      used to report to the verbs consumer whether this port is connected to a
      virtual network. We use this field to realize whether we need to create
      an address vector with GRH to access the subnet administrator. We clear
      the port attributes struct before calling the hardware driver to make
      sure the default remains that GRH is not required.
      Signed-off-by: default avatarEli Cohen <eli@mellanox.com>
      Reviewed-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      a0c1b2a3
    • Eli Cohen's avatar
      IB/core: Add subnet prefix to port info · fad61ad4
      Eli Cohen authored
      The subnet prefix is a part of the port_info MAD returned and should be
      available at the ib_port_attr struct. We define it here and provide a
      default implementation in case the hardware driver does not provide one.
      The subnet prefix is required when creating the address vector to access
      the SA in networks where GRH must be used.
      Signed-off-by: default avatarEli Cohen <eli@mellanox.com>
      Reviewed-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      fad61ad4
    • Leon Romanovsky's avatar
      IB/{core, ulp} Support above 32 possible device capability flags · fb532d6a
      Leon Romanovsky authored
      The old bitwise device_cap_flags variable was limited to u32 which
      has all bits already defined. In order to overcome it, we converted
      device_cap_flags variable to be u64 type.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Reviewed-by: default avatarMatan Barak <matanb@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      fb532d6a
  5. 17 Mar, 2016 1 commit
  6. 16 Mar, 2016 1 commit
  7. 10 Mar, 2016 21 commits