1. 28 11月, 2022 1 次提交
  2. 03 11月, 2022 1 次提交
  3. 03 10月, 2022 1 次提交
  4. 12 7月, 2022 1 次提交
  5. 07 7月, 2022 1 次提交
  6. 06 7月, 2022 1 次提交
  7. 03 5月, 2022 1 次提交
  8. 21 1月, 2022 1 次提交
  9. 18 11月, 2021 1 次提交
  10. 28 10月, 2021 6 次提交
  11. 29 8月, 2021 1 次提交
  12. 20 7月, 2021 1 次提交
    • S
      octeontx2-af: Prepare for allocating MCAM rules for AF · cb7a6b3b
      Subbaraya Sundeep 提交于
      AF till now only manages the allocation and freeing of
      MCAM rules for other PF/VFs in system. To implement
      L2 switching between all CGX mapped PF and VFs, AF
      requires MCAM entries for DMAC rules for each PF and VF.
      This patch modifies AF driver such that AF can also
      allocate MCAM rules and install rules for other
      PFs and VFs. All the checks like channel verification
      for RX rules and PF_FUNC verification for TX rules are
      relaxed in case AF is allocating or installing rules.
      Also all the entry and counter to owner mappings are
      set to NPC_MCAM_INVALID_MAP when they are free indicating
      those are not allocated to AF nor PF/VFs.
      This patch also ensures that AF allocated and installed
      entries are displayed in debugfs.
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cb7a6b3b
  13. 02 7月, 2021 1 次提交
  14. 16 6月, 2021 1 次提交
  15. 12 6月, 2021 1 次提交
    • N
      octeontx2-af: add support for multicast/promisc packet replication feature · 967db352
      Naveen Mamindlapalli 提交于
      Currently, multicast packet filtering is accomplished by installing
      MCAM rule that matches all-multicast MAC address and has its
      NPC_RX_ACTION set to unicast to PF. Similarly promisc feature is
      achieved by installing MCAM rule that matches all the traffic received
      by the channel and unicast the packets to PF. This approach only applies
      to PF and is not scalable across VFs.
      
      This patch adds support for PF/VF multicast and promisc feature by
      reserving NIX_RX_MCE_S entries from the global MCE list allocated
      during NIX block initialization. The NIX_RX_MCE_S entries create a
      linked list with a flag indicating the end of the list, and each entry
      points to a PF_FUNC (either PF or VF). When a packet NPC_RX_ACTION is
      set to MCAST, the corresponding NIX_RX_MCE_S list is traversed and the
      packet is queued to each PF_FUNC available on the list.
      
      The PF or VF driver adds the multicast/promisc packet match entry and
      updates the MCE list with correspondng PF_FUNC. When a PF or VF interface
      is disabled, the corresponding NIX_RX_MCE_S entry is removed from the
      MCE list and the MCAM entry will be disabled if the list is empty.
      Signed-off-by: NNaveen Mamindlapalli <naveenm@marvell.com>
      Signed-off-by: NSunil Kovvuri Goutham <Sunil.Goutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      967db352
  16. 25 3月, 2021 1 次提交
  17. 19 3月, 2021 3 次提交
    • S
      octeontx2-af: Return correct CGX RX fifo size · 29788787
      Subbaraya Sundeep 提交于
      CGX receive buffer size is a constant value and
      cannot be read from CGX0 block always since
      CGX0 may not enabled everytime. Hence return CGX
      receive buffer size from first enabled CGX block
      instead of CGX0.
      
      Fixes: 6e54e1c5 ("octeontx2-af: cn10K: MTU configuration")
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NHariprasad Kelam <hkelam@marvell.com>
      Signed-off-by: NSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      29788787
    • R
      octeontx2-af: Formatting debugfs entry rsrc_alloc. · f7884097
      Rakesh Babu 提交于
      With the existing rsrc_alloc's format, there is misalignment for the
      pcifunc entries whose VF's index is a double digit. This patch fixes
      this.
      
          pcifunc     NPA         NIX0        NIX1        SSO GROUP   SSOWS
          TIM         CPT0        CPT1        REE0        REE1
          PF0:VF0     8           5
          PF0:VF1     9                       3
          PF0:VF10    18          10
          PF0:VF11    19                      8
          PF0:VF12    20          11
          PF0:VF13    21                      9
          PF0:VF14    22          12
          PF0:VF15    23                      10
          PF1         0           0
      
      Fixes: 23205e6d ("octeontx2-af: Dump current resource provisioning status")
      Signed-off-by: NRakesh Babu <rsaladi2@marvell.com>
      Signed-off-by: NHariprasad Kelam <hkelam@marvell.com>
      Signed-off-by: NSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f7884097
    • N
      octeontx2-pf: Add tc flower hardware offload on ingress traffic · 1d4d9e42
      Naveen Mamindlapalli 提交于
      This patch adds support for tc flower hardware offload on ingress
      traffic. Since the tc-flower filter rules use the same set of MCAM
      rules as the n-tuple filters, the n-tuple filters and tc flower
      rules are mutually exclusive. When one of the feature is enabled
      using ethtool, the other feature is disabled in the driver. By default
      the driver enables n-tuple filters during initialization.
      
      The following flow keys are supported.
          -> Ethernet: dst_mac
          -> L2 proto: all protocols
          -> VLAN (802.1q): vlan_id/vlan_prio
          -> IPv4: dst_ip/src_ip/ip_proto{tcp|udp|sctp|icmp}/ip_tos
          -> IPv6: ip_proto{icmpv6}
          -> L4(tcp/udp/sctp): dst_port/src_port
      
      The following flow actions are supported.
          -> drop
          -> accept
          -> redirect
          -> vlan pop
      
      The flow action supports multiple actions when vlan pop is specified
      as the first action. The redirect action supports redirecting to the
      PF/VF of same PCI device. Redirecting to other PCI NIX devices is not
      supported.
      
      Example #1: Add a tc filter rule to drop UDP traffic with dest port 80
          # ethtool -K eth0 hw-tc-offload on
          # tc qdisc add dev eth0 ingress
          # tc filter add dev eth0 protocol ip parent ffff: flower ip_proto \
                udp dst_port 80 action drop
      
      Example #2: Add a tc filter rule to redirect ingress traffic on eth0
      with vlan id 3 to eth6 (ex: eth0 vf0) after stripping the vlan hdr.
          # ethtool -K eth0 hw-tc-offload on
          # tc qdisc add dev eth0 ingress
          # tc filter add dev eth0 parent ffff: protocol 802.1Q flower \
                vlan_id 3 vlan_ethtype ipv4 action vlan pop action mirred \
                ingress redirect dev eth6
      
      Example #3: List the ingress filter rules
          # tc -s filter show dev eth4 ingress
      
      Example #4: Delete tc flower filter rule with handle 0x1
          # tc filter del dev eth0 ingress protocol ip pref 49152 \
            handle 1 flower
      Signed-off-by: NNaveen Mamindlapalli <naveenm@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1d4d9e42
  18. 18 3月, 2021 1 次提交
  19. 22 2月, 2021 1 次提交
  20. 17 2月, 2021 1 次提交
  21. 13 2月, 2021 1 次提交
  22. 12 2月, 2021 3 次提交
  23. 04 2月, 2021 1 次提交
  24. 20 1月, 2021 1 次提交
  25. 14 1月, 2021 1 次提交
  26. 03 12月, 2020 1 次提交
  27. 21 11月, 2020 1 次提交
    • S
      octeontx2-af: add debugfs entries for CPT block · 76638a2e
      Srujana Challa 提交于
      Add entries to debugfs at /sys/kernel/debug/octeontx2/cpt.
      
      cpt_pc: dump cpt performance HW registers.
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_pc
      
      cpt_ae_sts: show cpt asymmetric engines current state
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_ae_sts
      
      cpt_se_sts: show cpt symmetric engines current state
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_se_sts
      
      cpt_engines_info: dump cpt engine control registers.
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_engines_info
      
      cpt_lfs_info: dump cpt lfs control registers.
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_lfs_info
      
      cpt_err_info: dump cpt error registers.
      Usage:
      cat /sys/kernel/debug/octeontx2/cpt/cpt_err_info
      Signed-off-by: NSuheil Chandran <schandran@marvell.com>
      Signed-off-by: NSrujana Challa <schalla@marvell.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      76638a2e
  28. 18 11月, 2020 1 次提交
  29. 01 11月, 2020 3 次提交