An error occurred fetching the project authors.
  1. 13 Jun, 2024 1 commit
  2. 15 Apr, 2024 1 commit
  3. 11 Oct, 2023 1 commit
    • Yanguo Li's avatar
      nfp: flower: avoid rmmod nfp crash issues · 14690995
      Yanguo Li authored
      When there are CT table entries, and you rmmod nfp, the following
      events can happen:
      
      task1:
          nfp_net_pci_remove
                ↓
          nfp_flower_stop->(asynchronous)tcf_ct_flow_table_cleanup_work(3)
                ↓
          nfp_zone_table_entry_destroy(1)
      
      task2:
          nfp_fl_ct_handle_nft_flow(2)
      
      When the execution order is (1)->(2)->(3), it will crash. Therefore, in
      the function nfp_fl_ct_del_flow, nf_flow_table_offload_del_cb needs to
      be executed synchronously.
      
      At the same time, in order to solve the deadlock problem and the problem
      of rtnl_lock sometimes failing, replace rtnl_lock with the private
      nfp_fl_lock.
      
      Fixes: 7cc93d88 ("nfp: flower-ct: remove callback delete deadlock")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarYanguo Li <yanguo.li@corigine.com>
      Signed-off-by: default avatarLouis Peens <louis.peens@corigine.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      14690995
  4. 31 Jul, 2023 1 commit
  5. 16 Mar, 2023 1 commit
  6. 11 Oct, 2022 1 commit
  7. 25 Aug, 2022 1 commit
  8. 29 Jun, 2022 1 commit
  9. 06 May, 2022 3 commits
  10. 25 Feb, 2022 1 commit
  11. 19 Dec, 2021 1 commit
  12. 01 Nov, 2021 1 commit
  13. 16 Sep, 2021 1 commit
  14. 22 Jul, 2021 6 commits
  15. 16 Jun, 2021 1 commit
  16. 02 Jun, 2021 2 commits
  17. 30 Mar, 2021 1 commit
  18. 16 Mar, 2021 1 commit
  19. 23 Aug, 2020 1 commit
  20. 20 Aug, 2020 1 commit
  21. 14 Jul, 2020 1 commit
    • Petr Machata's avatar
      net: sched: Pass qdisc reference in struct flow_block_offload · c40f4e50
      Petr Machata authored
      Previously, shared blocks were only relevant for the pseudo-qdiscs ingress
      and clsact. Recently, a qevent facility was introduced, which allows to
      bind blocks to well-defined slots of a qdisc instance. RED in particular
      got two qevents: early_drop and mark. Drivers that wish to offload these
      blocks will be sent the usual notification, and need to know which qdisc it
      is related to.
      
      To that end, extend flow_block_offload with a "sch" pointer, and initialize
      as appropriate. This prompts changes in the indirect block facility, which
      now tracks the scheduler in addition to the netdevice. Update signatures of
      several functions similarly.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c40f4e50
  22. 20 Jun, 2020 2 commits
  23. 19 Jun, 2020 1 commit
  24. 01 Jun, 2020 1 commit
  25. 27 May, 2020 1 commit
  26. 30 Mar, 2020 1 commit
    • Jiri Pirko's avatar
      net: sched: expose HW stats types per action used by drivers · 93a129eb
      Jiri Pirko authored
      It may be up to the driver (in case ANY HW stats is passed) to select
      which type of HW stats he is going to use. Add an infrastructure to
      expose this information to user.
      
      $ tc filter add dev enp3s0np1 ingress proto ip handle 1 pref 1 flower dst_ip 192.168.1.1 action drop
      $ tc -s filter show dev enp3s0np1 ingress
      filter protocol ip pref 1 flower chain 0
      filter protocol ip pref 1 flower chain 0 handle 0x1
        eth_type ipv4
        dst_ip 192.168.1.1
        in_hw in_hw_count 2
              action order 1: gact action drop
               random type none pass val 0
               index 1 ref 1 bind 1 installed 10 sec used 10 sec
              Action statistics:
              Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
              backlog 0b 0p requeues 0
              used_hw_stats immediate     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      93a129eb
  27. 20 Dec, 2019 4 commits
  28. 28 Aug, 2019 1 commit