1. 04 Oct, 2020 17 commits
  2. 03 Oct, 2020 21 commits
  3. 02 Oct, 2020 2 commits
    • David S. Miller's avatar
      Merge branch 'dpaa2-eth-add-devlink-parser-error-drop-trap-support' · 5a38b4fc
      David S. Miller authored
      Ioana Ciornei says:
      
      ====================
      dpaa2-eth: add devlink parser error drop trap support
      
      This patch set adds support in the dpaa2-eth driver for a new group of
      devlink drop traps - PARSER_ERROR_DROPS.
      
      The first patch adds a new generic trap group and associated traps,
      their definitions in devlink and their corresponding entries in the
      Documentation.
      
      Because there might be more devices (besides DPAA2) which do not support
      changing the action independently on each trap, a nre devlink callback
      is introduced - .trap_group_action_set(). If this callback is populated,
      it will take precedence over .trap_action_set() when the user requests
      changing the action on all the traps in a group.
      
      The next patches add basic linkage with devlink for the dpaa2-eth driver
      and support for the newly added PARSER_ERROR_DROPS. Nothing special
      here, just setting up the Rx error queue, interpreting the parse result,
      and then reporting any frame received on that queue to devlink.
      
      Changes in v2:
       - fix build error in 3/4
      
      Changes in v3:
       - removed a commented line in 4/4
       - added an extack in 4/4
       - fixed up a warning on 32bit in 4/4
       - reworded the trap_group_action_set() description in 2/4
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5a38b4fc
    • Ioana Ciornei's avatar
      dpaa2-eth: add support for devlink parser error drop traps · 061d631f
      Ioana Ciornei authored
      Add support for the new group of devlink traps - PARSER_ERROR_DROPS.
      This consists of registering the array of parser error drops supported,
      controlling their action through the .trap_group_action_set() callback
      and reporting an erroneous skb received on the error queue
      appropriately.
      DPAA2 devices do not support controlling the action of independent
      parser error traps, thus the .trap_action_set() callback just returns an
      EOPNOTSUPP while .trap_group_action_set() actually notifies the hardware
      what it should do with a frame marked as having a header error.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      061d631f