An error occurred fetching the project authors.
  1. 04 Oct, 2020 14 commits
  2. 03 Oct, 2020 21 commits
  3. 02 Oct, 2020 5 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
    • Ioana Ciornei's avatar
      dpaa2-eth: add basic devlink support · ceeb03ad
      Ioana Ciornei authored
      Add basic support in dpaa2-eth for devlink. For the moment, just
      register the device with devlink, add the corresponding devlink port and
      implement the .info_get() callback.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ceeb03ad
    • Ioana Ciornei's avatar
      devlink: add .trap_group_action_set() callback · c50bf2be
      Ioana Ciornei authored
      Add a new devlink callback, .trap_group_action_set(), which can be used
      by device drivers which do not support controlling the action (drop,
      trap) on each trap but rather on the entire group trap.
      If this new callback is populated, it will take precedence over the
      .trap_action_set() callback when the user requests a change of all the
      traps in a group.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c50bf2be
    • Ioana Ciornei's avatar
      devlink: add parser error drop packet traps · 10c24eb2
      Ioana Ciornei authored
      Add parser error drop packet traps, so that capable device driver could
      register them with devlink. The new packet trap group holds any drops of
      packets which were marked by the device as erroneous during header
      parsing. Add documentation for every added packet trap and packet trap
      group.
      Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      10c24eb2