13 Apr, 2015

25 commits


12 Apr, 2015

4 commits

  • Added get_rxfh_indir_size, get_rxfh_key_size and get_rxfh ethtool_ops
    callbacks implementations.

    This enables the ethtool's "-x" and "--show-rxfh[-indir]" options for VF
    devices.

    This patch adds the support for 82599 and x540 devices only. Support for
    other devices will be added later.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • Add the ixgbevf_get_rss_key() function that queries the PF for an RSS
    Random Key using a new VF-PF channel IXGBE_VF_GET_RSS_KEY command.

    This patch adds the support for 82599 and x540 devices only. Support for
    other devices will be added later.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • For 82599 and x540 VFs and PF share the same RSS Key. Therefore we will
    return the same RSS key for all VFs.

    Support for other devices will be added later.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • We will currently support only 82599 and x540 devices. Support for other
    devices will be added later.

    - Added a new API version support.
    - Added the query implementation in the ixgbevf.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     

11 Apr, 2015

7 commits

  • Add this new command for 82599 and x540 devices only. Support for other
    devices will be added later.

    82599 and x540 VFs and PF share the same RSS redirection table (RETA).
    Therefore we just return it for all VFs.

    For 82599 and x540 RETA table is an array of 32 registers (128 bytes) and
    the maximum number of registers that may be delivered in a single VF-PF
    channel command is 15. On the other hand VFs of these devices can be
    configured to have up to 4 RSS queues. Therefore we will "compress" the
    RETA by transferring only 2 bits per entry and thereby it will take only 8
    registers (DWORDS) to transfer the whole VF RETA.

    Thus this patch does the following:

    - Adds a new API version (to specify a new commands set).
    - Adds the IXGBE_VF_GET_RETA command to the VF-PF commands set.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • Implements the new netdev op to allow user to enable/disable the ability
    of a specific VF to query its RSS Indirection Table and an RSS Hash Key.

    This patch limits the new feature support to 82599 and x540 devices only.
    Support for other devices will be added later.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • Add configuration setting for drivers to allow/block an RSS Redirection
    Table and a Hash Key querying for discrete VFs.

    On some devices VF share the mentioned above information with PF and
    querying it may adduce a theoretical security risk. We want to let a
    system administrator to decide if he/she wants to take this risk or not.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • Added get_rxfh_indir_size, get_rxfh_key_size and get_rxfh ethtool_ops
    callbacks implementations.

    This enables the ethtool's "-x" and "--show-rxfh[-indir]" options.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • This patch is a preparation for enablement of ethtool RSS indirection
    table and hash key querying. We don't want to read registers every time
    the RSS info is queried. Therefore we will store its current content in the
    arrays in the adapter struct and will read it from there (instead of from
    registers) when requested.

    Will change the code that writes the indirection table and hash key into
    the HW registers to take its content from these arrays. This will also
    simplify the indirection table updating ethtool callback implementation
    in the future.

    Signed-off-by: Vlad Zolotarov
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vlad Zolotarov
     
  • Jeff Kirsher says:

    ====================
    Intel Wired LAN Driver Updates 2015-04-10

    This series contains updates to ixgbe and documentation for igb,
    ixgbe and ixgb.

    Stephen cleans up documentation to igb, ixgbe and ixgb.

    Don updates how bridge mode is stored to minimize obfuscation and
    makes updates for future silicon easier. Adds a new bridge mode
    support function which gathers all the logic needed to configure
    bridge modes. Adds Source Address Prunning for VEPA bridge mode
    for x550 devices.

    Vasu adds specific FCoE offloads for x550 for DDP context programming
    and increased DDP exchanges.

    Alex Duyck cleans up the use of HW_VLAN_CTAG_FILTER in hw_features,
    where the driver was actually ignoring the value of the bit and was
    just assuming it was always set. Also cleans up the use of rcu_barrier()
    since the driver has not used call_rcu() to free the rings for some
    time now.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: Thomas Graf
    Signed-off-by: David S. Miller

    Thomas Graf
     

10 Apr, 2015

4 commits

  • The ixgbe driver hasn't used call_rcu to free the rings for some time now.
    Since that is the case the call to rcu_barrier can be dropped since calls
    to kfree_rcu don't require it.

    Signed-off-by: Alexander Duyck
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Alexander Duyck
     
  • This change makes it so that the HW_VLAN_CTAG_FILTER bit is not falsely
    advertised as being a feature that can be toggled on ixgbe parts. The
    driver was setting the bit in features and letting it be inherited by
    hw_features, however the driver was actually ignoring the value of the bit
    and just assuming it was always set. As a result VLAN filtering was always
    enabled which is a requirement for SR-IOV, VMDq, DCB, FCoE, and possibly
    other features within the adapters.

    Signed-off-by: Alexander Duyck
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Alexander Duyck
     
  • Adds x550 specific FCoE offloads for DDP context programming and
    increased DDP exchanges.

    Signed-off-by: Vasu Dev
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Vasu Dev
     
  • This patch will enable X550 Source Address Prunning for VEPA
    bridge mode. This requires that we also have replication enabled
    as well, while in this mode.

    Signed-off-by: Don Skidmore
    Tested-by: Phil Schmitt
    Signed-off-by: Jeff Kirsher

    Don Skidmore