An error occurred fetching the project authors.
  1. 04 Dec, 2018 4 commits
    • Krzysztof Kanas's avatar
      octeontx2-af: Add support for Tx packet marking · a27d7659
      Krzysztof Kanas authored
      NIX_AF_MARK_FORMAT(0..127)_CTL register enables an SW defined
      means to mark/insert various data in the packet based on
      final packet color from traffic shaping HW.
      
      0..127 works as an index to choose the algorithm. On success,
      the mailbox returns the index to the client.
      
      Add NIX_MARK_FORMAT_CFG mailbox which reserves mark format based on
      tuple (offset, y_mask, y_val, r_mask, r_val)
      
      If the tuple is requested again for mark format that was already
      reserved, then it will be reused. If not it will reserve a new entry
      if space is available.
      
      Also on AF init commonly used marker format such as VLAN DEI, IPv4
      ECN, IPv4 DSCP are reserved for AF consumers.
      Signed-off-by: default avatarKrzysztof Kanas <kkanas@marvell.com>
      Signed-off-by: default avatarJerin Jacob <jerinj@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a27d7659
    • Nithin Dabilpuram's avatar
      octeontx2-af: Restrict TL1 allocation and configuration · 26dda7da
      Nithin Dabilpuram authored
      TL1 is the root node in the scheduling hierarchy and
      it is a global resource with a limited number.
      
      This patch introduces restriction and validation on
      the allocation of the TL1 nodes for the effective resource
      sharing across the AF consumers.
      
      - Limit TL1 allocation to 2 per lmac.
        One could be for the normal link and one for IEEE802.3br
        express link (Express Send DMA).
        Effectively all the VF's of an RVU PF(lmac) share the two TL1 schqs.
      - TL1 cannot be freed once allocated.
      - Allow VF's to only apply default config to TL1 if not
        already applied. PF's can always overwrite the TL1 config.
      - Consider NIX_AQ_INSTOP_WRITE while validating txschq
        when sq.ena is set.
      Signed-off-by: default avatarKrzysztof Kanas <kkanas@marvell.com>
      Signed-off-by: default avatarNithin Dabilpuram <ndabilpuram@marvell.com>
      Signed-off-by: default avatarJerin Jacob <jerinj@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      26dda7da
    • Jerin Jacob's avatar
      octeontx2-af: Add support for runtime RSS algo index reservation · 7ee74697
      Jerin Jacob authored
      Introduced reserve_flowkey_alg_idx()to reserve RSS algorithm index,
      it would internally use set_flowkey_fields() to generate fields
      based on the flow key dynamically.
      
      On AF driver init, it would reserve a predefined set RSS algo indexes,
      which will be available all the time for all the AF driver consumers.
      The leftover algo indexes can be reserved at runtime through
      exiting nix_rss_flowkey_cfg mailbox message.
      
      The NIX_FLOW_KEY_TYPE_PORT is removed from predefined a set of RSS flow
      type as it is not used by any consumer.
      Signed-off-by: default avatarJerin Jacob <jerinj@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7ee74697
    • Jerin Jacob's avatar
      octeontx2-af: Add response for RSS flow key cfg message · bd522d68
      Jerin Jacob authored
      Added response for nix_rss_flowkey_cfg message to return
      selected RSS algorithm index.
      
      The FLOW_KEY_TYPE* definition is part of the mbox message and
      it will be used by the other consumers of AF driver hence moving to mbox.h.
      
      Also renamed FLOW_* definitions to NIX_FLOW_* to avoid global
      name space collisions, as we have various coming from
      include/uapi/linux/pkt_cls.h for example.
      Signed-off-by: default avatarJerin Jacob <jerinj@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bd522d68
  2. 24 Nov, 2018 2 commits
  3. 20 Nov, 2018 18 commits
  4. 23 Oct, 2018 13 commits
  5. 18 Oct, 2018 3 commits