1. 14 Apr, 2021 34 commits
  2. 13 Apr, 2021 6 commits
    • Arnd Bergmann's avatar
      net: Space: remove hp100 probe · 87b7e5c0
      Arnd Bergmann authored
      The driver was removed last year, but the static initialization got left
      behind by accident.
      
      Fixes: a10079c6 ("staging: remove hp100 driver")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      87b7e5c0
    • David S. Miller's avatar
      Merge branch 'dpaa2-switch-tc-hw-offload' · 90a825a4
      David S. Miller authored
      Ioana Ciornei says:
      
      ====================
      dpaa2-switch: add tc hardware offload on ingress traffic
      
      This patch set adds tc hardware offload on ingress traffic in
      dpaa2-switch. The cls flower and matchall classifiers are supported
      using the same ACL infrastructure supported by the dpaa2-switch.
      
      The first patch creates a new structure to hold all the necessary
      information related to an ACL table. This structure is used in the next
      patches to create a link between each switch port and the table used.
      Multiple ports can share the same ACL table when they also share the
      ingress tc block. Also, some small changes in the priority of the
      default STP trap is done in the second patch.
      
      The support for cls flower is added in the 3rd patch, while the 4th
      one builds on top of the infrastructure put in place and adds cls
      matchall support.
      
      The following flow keys are supported:
       - Ethernet: dst_mac/src_mac
       - IPv4: dst_ip/src_ip/ip_proto/tos
       - VLAN: vlan_id/vlan_prio/vlan_tpid/vlan_dei
       - L4: dst_port/src_port
      
      Each filter can support only one action from the following list:
       - drop
       - mirred egress redirect
       - trap
      
      With the last patch, we reuse the dpaa2_switch_acl_entry_add() function
      added previously instead of open-coding the install of a new ACL entry
      into the table.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      90a825a4
    • Ioana Ciornei's avatar
      dpaa2-switch: reuse dpaa2_switch_acl_entry_add() for STP frames trap · 16617954
      Ioana Ciornei authored
      Since we added the dpaa2_switch_acl_entry_add() function in the previous
      patches to hide all the details of actually adding the ACL entry by
      issuing a firmware command, let's use it also for adding a CPU trap for
      the STP frames.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      16617954
    • Ioana Ciornei's avatar
      dpaa2-switch: add tc matchall filter support · 4ba28c1a
      Ioana Ciornei authored
      Add support TC_SETUP_CLSMATCHALL by using the same ACL table entries
      framework as for tc flower. Adding a matchall rule is done by installing
      an entry which has a mask of all zeroes, thus matching on any packet.
      
      This can be used as a catch-all type of rule if used correctly, ie the
      priority of the matchall filter should be kept as the lowest one in the
      entire filter block.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4ba28c1a
    • Ioana Ciornei's avatar
      dpaa2-switch: add tc flower hardware offload on ingress traffic · 1110318d
      Ioana Ciornei authored
      This patch adds support for tc flower hardware offload on the ingress
      path. Shared filter blocks are supported by sharing a single ACL table
      between multiple ports.
      
      The following flow keys are supported:
       - Ethernet: dst_mac/src_mac
       - IPv4: dst_ip/src_ip/ip_proto/tos
       - VLAN: vlan_id/vlan_prio/vlan_tpid/vlan_dei
       - L4: dst_port/src_port
      
      As per flow actions, the following are supported:
       - drop
       - mirred egress redirect
       - trap
      Each ACL entry (filter) can be setup with only one of the listed
      actions.
      
      A sorted single linked list is used to keep the ACL entries by their
      order of priority. When adding a new filter, this enables us to quickly
      ascertain if the new entry has the highest priority of the entire block
      or if we should make some space in the ACL table by increasing the
      priority of the filters already in the table.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1110318d
    • Ioana Ciornei's avatar
      dpaa2-switch: install default STP trap rule with the highest priority · 2bf90ba5
      Ioana Ciornei authored
      Change the default ACL trap rule for STP frames to have the highest
      priority.
      
      In the same ACL table will reside both default rules added by the driver
      for its internal use as well as rules added with tc flower.  In this
      case, the default rules such as the STP one that we already have should
      have the highest priority.
      
      Also, remove the check for a full ACL table since we already know that
      it's sized so that we don't hit this case.  The last thing changes is
      that default trap filters will not be counted in the acl_tbl's num_rules
      variable since their number doesn't change.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2bf90ba5