1. 04 Oct, 2020 10 commits
  2. 03 Oct, 2020 21 commits
  3. 02 Oct, 2020 9 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
    • David S. Miller's avatar
      Merge branch 'ionic-error-recovery' · 34ad9377
      David S. Miller authored
      Shannon Nelson says:
      
      ====================
      ionic error recovery
      
      This set of patches comes mostly from error recovery path testing,
      as well as a couple of upstream review comments.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      34ad9377
    • Shannon Nelson's avatar
      ionic: add new bad firmware error code · 9e15410d
      Shannon Nelson authored
      If the new firmware image downladed for update is corrupted
      or is a bad format, the download process will report a status
      code specifically for that.
      Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9e15410d
    • Shannon Nelson's avatar
      ionic: use lif ident for filter count · bb9f80f3
      Shannon Nelson authored
      Use the lif's ident information for the uc and mc filter
      counts rather than the ionic's version, to be sure
      we're getting the info that is specific to this lif.
      
      While we're thinking about it, add some missing error
      checking where we get the lif's identity information.
      Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bb9f80f3
    • Shannon Nelson's avatar
      ionic: refill lif identity after fw_up · a21b5d49
      Shannon Nelson authored
      After we do a fw upgrade and refill the ionic->ident.dev, we
      also need to update the other identity info.  Since the lif
      identity needs to be updated each time the ionic identity is
      refreshed, we can pull it into ionic_identify().
      
      The debugfs entry is moved so that it doesn't cause an
      error message when the data is refreshed after the fw upgrade.
      Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a21b5d49