1. 03 Jun, 2019 38 commits
  2. 02 Jun, 2019 2 commits
    • David S. Miller's avatar
      Merge branch 'mscc-ocelot-tc-flower' · 57f04102
      David S. Miller authored
      Horatiu Vultur says:
      
      ====================
      Add hw offload of TC flower on MSCC Ocelot
      
      This patch series enables hardware offload for flower filter used in
      traffic controller on MSCC Ocelot board.
      
      v2->v3 changes:
       - remove the check for shared blocks
      
      v1->v2 changes:
       - when declaring variables use reverse christmas tree
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      57f04102
    • Horatiu Vultur's avatar
      net: mscc: ocelot: Hardware ofload for tc flower filter · fe3490e6
      Horatiu Vultur authored
      Hardware offload of port filtering are now supported via tc command using
      flower filter. ACL rules are used to enable the hardware offload.
      The following keys are supported:
      
      vlan_id
      vlan_prio
      dst_mac/src_mac for non IP frames
      dst_ip/src_ip
      dst_port/src_port
      
      The following actions are supported:
      trap
      drop
      
      These filters are supported only on the ingress schedulare.
      
      Add:
      tc qdisc add dev eth3 ingress
      tc filter ad dev eth3 parent ffff: ip_proto ip flower \
          ip_proto tcp dst_port 80 action drop
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fe3490e6