1. 16 Nov, 2019 1 commit
  2. 04 Dec, 2018 1 commit
    • Vamsi Attunuru's avatar
      octeontx2-af: Enable mkex profile · 23705adb
      Vamsi Attunuru authored
      The following set of NPC registers allow the driver to configure NPC
      to generate different key value schemes to compare against packet
      payload in MCAM search.
      Currently, the AF driver populates these registers to
      configure the default values to address the most common
      use cases such as key generation for channel number + DMAC.
      The secure firmware stores different configuration
      value of these registers to enable different NPC use case
      along with the name for the lookup.
      Patch loads profile binary from secure firmware over
      the exiting CGX mailbox interface and apply the profile.
      AF driver shall fall back to the default configuration
      in case of any errors.
      The AF consumer driver can know the selected profile
      on response to NPC_GET_KEX_CFG mailbox by introducing
      mkex_pfl_name in the struct npc_get_kex_cfg_rsp.
      Signed-off-by: default avatarVamsi Attunuru <vamsi.attunuru@marvell.com>
      Signed-off-by: default avatarJerin Jacob <jerinj@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  3. 20 Nov, 2018 1 commit
    • Tomasz Duszynski's avatar
      octeontx2-af: Add support for stripping STAG/CTAG · 86cea61d
      Tomasz Duszynski authored
      This works by shadowing existing UCAST MCAM entry
      with a new one additionally matching either NPC_LT_LB_CTAG
      or NPC_LT_LB_STAG. For this to fully work one needs to
      send properly configured NIX_VTAG_CFG message afterwards i.e with
      strip and capture enabled and type set to 0.
      On receiving tagged packet NIX will remove outer VLAN and capture
      TCI in NIX_RX_PARSE_S.
      Also simplified RX Vtag configuration flow
      With this setting STRIP/CAPTURE VTAG actions separately would be
      possible. Following combinations are possible: STRIP,
      STRIP and CAPTURE, CAPTURE or nothing (0 disables respective actions).
      Signed-off-by: default avatarTomasz Duszynski <tduszynski@marvell.com>
      Signed-off-by: default avatarSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  4. 23 Oct, 2018 3 commits