1. 27 5月, 2020 6 次提交
    • I
      mlxsw: spectrum: Use same switch case for identical groups · 761bc42f
      Ido Schimmel 提交于
      Trap groups that use the same policer settings can share the same switch
      case.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      761bc42f
    • I
      mlxsw: spectrum: Use dedicated trap group for ACL trap · 3c2d8a04
      Ido Schimmel 提交于
      Packets that are trapped via tc's trap action are currently subject to
      the same policer as packets hitting local routes. The latter are
      critical to the correct functioning of the control plane, while the
      former are mainly used for traffic inspection.
      
      Split the ACL trap to a separate group with its own policer. Use a
      higher priority for these traps than for traps using mirror action
      (e.g., ARP, IGMP). Otherwise, packets matching both traps will not be
      forwarded in hardware (because of trap action) and also not forwarded in
      software because they will be marked with 'offload_fwd_mark'.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3c2d8a04
    • H
      r8169: improve rtl_remove_one · 12b1bc75
      Heiner Kallweit 提交于
      Don't call netif_napi_del() manually, free_netdev() does this for us.
      In addition reorder calls to match reverse order of calls in probe().
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      12b1bc75
    • F
      net: ethernet: fec: move GPR register offset and bit into DT · 8a448bf8
      Fugang Duan 提交于
      The commit da722186 (net: fec: set GPR bit on suspend by DT
      configuration) set the GPR reigster offset and bit in driver for
      wake on lan feature.
      
      But it introduces two issues here:
      - one SOC has two instances, they have different bit
      - different SOCs may have different offset and bit
      
      So to support wake-on-lan feature on other i.MX platforms, it should
      configure the GPR reigster offset and bit from DT.
      
      So the patch is to improve the commit da722186 (net: fec: set GPR
      bit on suspend by DT configuration) to support multiple ethernet
      instances on i.MX series.
      
      v2:
       * switch back to store the quirks bitmask in driver_data
      v3:
       * suggested by Sascha Hauer, use a struct fec_devinfo for
         abstracting differences between different hardware variants,
         it can give more freedom to describe the differences.
      Signed-off-by: NFugang Duan <fugang.duan@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8a448bf8
    • G
      flow_dissector: Parse multiple MPLS Label Stack Entries · 58cff782
      Guillaume Nault 提交于
      The current MPLS dissector only parses the first MPLS Label Stack
      Entry (second LSE can be parsed too, but only to set a key_id).
      
      This patch adds the possibility to parse several LSEs by making
      __skb_flow_dissect_mpls() return FLOW_DISSECT_RET_PROTO_AGAIN as long
      as the Bottom Of Stack bit hasn't been seen, up to a maximum of
      FLOW_DIS_MPLS_MAX entries.
      
      FLOW_DIS_MPLS_MAX is arbitrarily set to 7. This should be enough for
      many practical purposes, without wasting too much space.
      
      To record the parsed values, flow_dissector_key_mpls is modified to
      store an array of stack entries, instead of just the values of the
      first one. A bit field, "used_lses", is also added to keep track of
      the LSEs that have been set. The objective is to avoid defining a
      new FLOW_DISSECTOR_KEY_MPLS_XX for each level of the MPLS stack.
      
      TC flower is adapted for the new struct flow_dissector_key_mpls layout.
      Matching on several MPLS Label Stack Entries will be added in the next
      patch.
      
      The NFP and MLX5 drivers are also adapted: nfp_flower_compile_mac() and
      mlx5's parse_tunnel() now verify that the rule only uses the first LSE
      and fail if it doesn't.
      
      Finally, the behaviour of the FLOW_DISSECTOR_KEY_MPLS_ENTROPY key is
      slightly modified. Instead of recording the first Entropy Label, it
      now records the last one. This shouldn't have any consequences since
      there doesn't seem to have any user of FLOW_DISSECTOR_KEY_MPLS_ENTROPY
      in the tree. We'd probably better do a hash of all parsed MPLS labels
      instead (excluding reserved labels) anyway. That'd give better entropy
      and would probably also simplify the code. But that's not the purpose
      of this patch, so I'm keeping that as a future possible improvement.
      Signed-off-by: NGuillaume Nault <gnault@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58cff782
    • Y
      qed: Add EDPM mode type for user-fw compatibility · ff937b91
      Yuval Basson 提交于
      In older FW versions the completion flag was treated as the ack flag in
      edpm messages. Expose the FW option of setting which mode the QP is in
      by adding a flag to the qedr <-> qed API.
      
      Flag is added for backward compatibility with libqedr.
      This flag will be set by qedr after determining whether the libqedr is
      using the updated version.
      
      Fixes: f1093940 ("qed: Add support for QP verbs")
      Signed-off-by: NYuval Basson <yuval.bason@marvell.com>
      Signed-off-by: NMichal Kalderon <michal.kalderon@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff937b91
  2. 26 5月, 2020 6 次提交
  3. 25 5月, 2020 11 次提交
  4. 24 5月, 2020 9 次提交
  5. 23 5月, 2020 8 次提交