21 Jul, 2014

1 commit

  • Currently we're limited by a constant level of vlan nestings, and fail to
    find anything beyound that level (currently 2).

    To fix this - remove the limit of nestings when going through device tree,
    and when the end device is found - allocate the needed amount of vlan tags
    and return them, instead of found/not found.

    CC: Jay Vosburgh
    CC: Andy Gospodarek
    Signed-off-by: Veaceslav Falico
    Signed-off-by: David S. Miller

    Veaceslav Falico
     

20 Jul, 2014

1 commit


18 Jul, 2014

24 commits


17 Jul, 2014

14 commits

  • Jeff Kirsher says:

    ====================
    Intel Wired LAN Driver Updates 2014-07-16

    This series contains updates to i40e only.

    Neerav adds support to get the port MAC address from firmware and adds
    support to the ndo_get_phys_port_id() callback to provide port specific
    unique ids to the netdev layer.

    Jakub Kicinski provides 2 fixes, first fixes i40e to never generate a software
    time stamp if the hardware time stamp is provided. Second fixes a race
    condition on queueing skb for hardware time by using a simple bit lock to
    avoid race conditions and leaking skbs when multiple transmit rings try
    to claim time stamping.

    Paul does some general cleanup of the driver to remove unneeded spaces,
    comments that are no longer valid, and break that will never get touched.

    Jacob Keller adds a verbose warning message when the incorrect PF attempts
    to control timestamping for a port to which it was not assigned. The primary
    intent of this message is to help debugging the reason why the SIOCSHWSTAMP
    ioctl has failed and to help narrow the cause of the issue.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • In TLB mode if tlb_dynamic_lb is NOT set, slaves from the bond
    group are selected based on the hash distribution. This does not
    exclude dead links which are part of the bond. Also if there is a
    temporary link event which brings down the interface, packets
    hashed on that interface would be dropped too.

    This patch fixes these issues and distributes flows across the
    UP links only. Also the array construction of links which are
    capable of sending packets happen in the control path leaving
    only link-selection during the data-path.

    One possible side effect of this is - at a link event; all
    flows will be shuffled to get good distribution. But impact of
    this should be minimum with the assumption that a member or
    members of the bond group are not available is a very temporary
    situation.

    Signed-off-by: Mahesh Bandewar
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Mahesh Bandewar
     
  • This patch allows to create PHYs from DT in case
    if they are explicitly defined. The of_mdiobus_register() is
    used for such purposes.

    For backward compatibility, call of_mdiobus_register() only in case
    if at least one PHY's child is defined in DT, otherwise rollback to
    mdiobus_register().

    Reviewed-by: Santosh Shilimkar
    Acked-by: Mugunthan V N
    Signed-off-by: Grygorii Strashko
    Reviewed-by: Lad, Prabhakar
    Signed-off-by: David S. Miller

    Grygorii Strashko
     
  • The similar MDIO HW blocks is used by keystone 2 SoCs as
    in Davinci SoCs:
    - one in Gigabit Ethernet (GbE) Switch Subsystem
    See http://www.ti.com/lit/ug/sprugv9d/sprugv9d.pdf
    - one in 10 Gigabit Ethernet Subsystem
    See http://www.ti.com/lit/ug/spruhj5/spruhj5.pdf

    Hence, reuse Davinci MDIO driver for Keystone 2 and
    enable TI networking for Keystone 2 devices

    Reviewed-by: Santosh Shilimkar
    Acked-by: Mugunthan V N
    Signed-off-by: Grygorii Strashko
    Reviewed-by: Lad, Prabhakar
    Signed-off-by: David S. Miller

    Grygorii Strashko
     
  • In B0 steering mode if promiscuous QP asks to be detached from MCG entry,
    and it is the only one in this entry then the entry will never be deleted.
    This is a wrong behavior since we don't want to keep those entries after
    the promiscuous QP becomes non-promiscuous. Therefore remove steering
    entry containing only promiscuous QP.

    Signed-off-by: Saeed Mahameed
    Signed-off-by: Eugenia Emantayev
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Saeed Mahameed
     
  • In current situation host is adding the promiscuous QP to all steering
    entries and the default entry as well. In this case when having PV
    and SR-IOV on the same setup bridge will receive all traffic that is
    targeted to the other VMs. This is bad.
    Solution: In SR-IOV mode host can add promiscuous QP to default entry only.
    The above problem and fix are relevant for B0 steering mode only.

    Signed-off-by: Eugenia Emantayev
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Eugenia Emantayev
     
  • In B0 steering mode when adding QPs to the default MCG entry need
    to check that maximal number of QPs per MCG entry was not exceeded.

    Signed-off-by: Alexander Guller
    Reviewed-by: Aviad Yehezkel
    Signed-off-by: Eugenia Emantayev
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Alexander Guller
     
  • To make sure that the array index isn't used in the code with
    negative value, we stop using the for loop integer iterator
    outside of it.
    >From now on use members count to swap the last QP with removed one.
    Fix also the second occurrence of this flow in mlx4_qp_detach_common().
    In mlx4_qp_detach_common() use members_count instead of
    loop iterator outside of the for loop.

    Signed-off-by: Dotan Barak
    Reviewed-by: Yevgeny Petrilin
    Signed-off-by: Eugenia Emantayev
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Dotan Barak
     
  • When removing multicast address in B0 steering mode there is
    a bug in cases where there is a single QP registered for the address,
    and this QP is also promiscuous. In such cases the entry wouldn't be
    deleted from the SW structure representing all Ethernet MCG entries,
    but would be removed in HW. This way when driver goes to remove it
    from SW and HW structures the HW deletion fails.
    Moreover the same index could later be used for registering
    different address, which can be Infiniband.

    Signed-off-by: Yevgeny Petrilin
    Signed-off-by: Eugenia Emantayev
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Yevgeny Petrilin
     
  • Commit d762d038497c9df51c19fcbe69b094b3bf8e5568 resets the counter holding the
    next sequence number for multilink PPP fragments to zero whenever the
    SC_MULTILINK flag is set. However, this counter only exists if
    CONFIG_PPP_MULTILINK is defined. Consequently, the new code has to be enclosed
    within #ifdef CONFIG_PPP_MULTILINK ... #endif.

    Signed-off-by: Christoph Schulz
    Signed-off-by: David S. Miller

    Christoph Schulz
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Display a verbose warning message when the incorrect PF attempts to
    control timestamping for a port to which it was not assigned. This
    shouldn't display except in the case of multiple PFs per port. The
    primary intent of this message is to help debugging the reason why the
    SIOCSHWTSTAMP ioctl has failed, and to help narrow the cause of the
    issue.

    Change-ID: Ic98798e0c844d98389d4c20e7160ba256f2bc7e8
    Signed-off-by: Jacob Keller
    Tested-by: Jim Young
    Signed-off-by: Jeff Kirsher

    Jacob Keller
     
  • 1. Remove some break statements that will never get touched.
    2. Remove an extra space.
    3. Remove a comment for a parameter that doesn't exist
    4. Move the assignment of a variable up to get rid of an else case.

    Change-ID: I308a4b5ec070b1f0601f13b041ba4375aaad4b06
    Signed-off-by: Paul M Stillwell Jr
    Tested-by: Jim Young
    Tested-by: Sibai Li
    Signed-off-by: Jeff Kirsher

    Paul M Stillwell Jr
     
  • i40e has a single set of TX time stamping resources per NIC.
    Use a simple bit lock to avoid race conditions and leaking skbs
    when multiple TX rings try to claim time stamping.

    Signed-off-by: Jakub Kicinski
    Tested-By: Jim Young
    Signed-off-by: Jeff Kirsher

    Jakub Kicinski