1. 09 2月, 2022 3 次提交
  2. 27 1月, 2022 1 次提交
  3. 07 1月, 2022 3 次提交
  4. 03 1月, 2022 1 次提交
  5. 17 12月, 2021 1 次提交
  6. 16 12月, 2021 1 次提交
  7. 14 12月, 2021 1 次提交
  8. 30 11月, 2021 1 次提交
  9. 18 11月, 2021 3 次提交
  10. 17 11月, 2021 1 次提交
  11. 15 10月, 2021 2 次提交
  12. 05 10月, 2021 1 次提交
  13. 04 10月, 2021 1 次提交
  14. 27 9月, 2021 1 次提交
  15. 22 9月, 2021 1 次提交
  16. 19 9月, 2021 1 次提交
  17. 31 8月, 2021 1 次提交
    • J
      dpaa2-eth: Replace strlcpy with strscpy · 995786ba
      Jason Wang 提交于
      The strlcpy should not be used because it doesn't limit the source
      length. As linus says, it's a completely useless function if you
      can't implicitly trust the source string - but that is almost always
      why people think they should use it! All in all the BSD function
      will lead some potential bugs.
      
      But the strscpy doesn't require reading memory from the src string
      beyond the specified "count" bytes, and since the return value is
      easier to error-check than strlcpy()'s. In addition, the implementation
      is robust to the string changing out from underneath it, unlike the
      current strlcpy() implementation.
      
      Thus, We prefer using strscpy instead of strlcpy.
      Signed-off-by: NJason Wang <wangborong@cdjrlc.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      995786ba
  18. 20 8月, 2021 3 次提交
  19. 09 8月, 2021 1 次提交
    • L
      devlink: Set device as early as possible · 919d13a7
      Leon Romanovsky 提交于
      All kernel devlink implementations call to devlink_alloc() during
      initialization routine for specific device which is used later as
      a parent device for devlink_register().
      
      Such late device assignment causes to the situation which requires us to
      call to device_register() before setting other parameters, but that call
      opens devlink to the world and makes accessible for the netlink users.
      
      Any attempt to move devlink_register() to be the last call generates the
      following error due to access to the devlink->dev pointer.
      
      [    8.758862]  devlink_nl_param_fill+0x2e8/0xe50
      [    8.760305]  devlink_param_notify+0x6d/0x180
      [    8.760435]  __devlink_params_register+0x2f1/0x670
      [    8.760558]  devlink_params_register+0x1e/0x20
      
      The simple change of API to set devlink device in the devlink_alloc()
      instead of devlink_register() fixes all this above and ensures that
      prior to call to devlink_register() everything already set.
      Signed-off-by: NLeon Romanovsky <leonro@nvidia.com>
      Reviewed-by: NJiri Pirko <jiri@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      919d13a7
  20. 04 8月, 2021 8 次提交
  21. 03 8月, 2021 1 次提交
  22. 30 7月, 2021 3 次提交
    • I
      dpaa2-switch: offload shared block mirror filters when binding to a port · 7a91f907
      Ioana Ciornei 提交于
      When mirroring rules are added in shared filter blocks, the same
      mirroring rule has to be configured on all the switch ports that are
      part of the same block.
      
      In case a switch port joins a shared block after mirroring filters have
      been already added to it, then all the mirror rules should be offloaded
      to the port. The reverse, removal of mirroring rules, has to be done at
      block unbind.
      
      For this purpose, the dpaa2_switch_block_offload_mirror() and
      dpaa2_switch_block_unoffload_mirror() functions are added and called
      upon binding and unbinding a switch port to/from a block.
      Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7a91f907
    • I
      dpaa2-switch: add VLAN based mirroring · 0f3faece
      Ioana Ciornei 提交于
      Using the infrastructure added in the previous patch, extend tc-flower
      support with FLOW_ACTION_MIRRED based on VLAN.
      
      Tested with:
      
      tc qdisc add dev eth8 ingress_block 1 clsact
      tc filter add block 1 ingress protocol 802.1q flower skip_sw \
      	vlan_id 100 action mirred egress mirror dev eth6
      tc filter del block 1 ingress pref 49152
      Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0f3faece
    • I
      dpaa2-switch: add support for port mirroring · e0ead825
      Ioana Ciornei 提交于
      Add support for per port mirroring for the DPAA2 switch. We support
      only single mirror port, therefore we allow mirroring rules only as long
      as the destination port is always the same.
      
      Unlike all the actions (drop, redirect, trap) already supported by the
      dpaa2-switch driver, adding mirroring filters in shared blocks is not
      achieved by a singular ACL entry added in a table shared by the ports.
      This is why, when a new mirror filter is added in a block we have to got
      through all the switch ports sharing it and configure the filter
      individually on all.
      Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0ead825