Skip to content
  1. Sep 30, 2020
    • Stanislaw Kardach's avatar
      octeontx2-af: cleanup KPU config data · 42006910
      Stanislaw Kardach authored
      
      
      Refactor KPU related NPC code gathering all configuration data in a
      structured format and putting it in one place (npc_profile.h).
      This increases readability and makes it easier to extend the profile
      configuration (as opposed to jumping between multiple header and source
      files).
      
      To do this:
      * Gather all KPU profile related data into a single adapter struct.
      * Convert the built-in MKEX definition to a structured one to streamline
        the MKEX loading.
      * Convert LT default register configuration into a structure, keeping
        default protocol settings in same file where identifiers for those
        protocols are defined.
      * Add a single point for KPU profile loading, so that its source may
        change in the future once proper interfaces for loading such config
        are in place.
      
      Signed-off-by: default avatarStanislaw Kardach <skardach@marvell.com>
      Acked-by: default avatarSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      42006910
    • Stanislaw Kardach's avatar
      octeontx2-af: fix LD CUSTOM LTYPE aliasing · 450f0b97
      Stanislaw Kardach authored
      
      
      Since LD contains LTYPE definitions tweaked toward efficient
      NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location
      of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions.
      Moving custom frame to value 6 and 7 removes the aliasing at the cost of
      custom frames being also considered when TCP/UDP RSS algo is configured.
      
      However since the goal of CUSTOM frames is to classify them to a
      separate set of RQs, this cost is acceptable.
      
      Signed-off-by: default avatarStanislaw Kardach <skardach@marvell.com>
      Acked-by: default avatarSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      450f0b97
  2. Sep 29, 2020