1. 03 11月, 2016 1 次提交
  2. 26 7月, 2016 1 次提交
    • W
      net_sched: move tc_action into tcf_common · a85a970a
      WANG Cong 提交于
      struct tc_action is confusing, currently we use it for two purposes:
      1) Pass in arguments and carry out results from helper functions
      2) A generic representation for tc actions
      
      The first one is error-prone, since we need to make sure we don't
      miss anything. This patch aims to get rid of this use, by moving
      tc_action into tcf_common, so that they are allocated together
      in hashtable and can be cast'ed easily.
      
      And together with the following patch, we could really make
      tc_action a generic representation for all tc actions and each
      type of action can inherit from it.
      
      Cc: Jamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a85a970a
  3. 16 6月, 2016 2 次提交
  4. 15 6月, 2016 1 次提交
  5. 08 6月, 2016 4 次提交
  6. 11 5月, 2016 1 次提交
  7. 27 4月, 2016 1 次提交
  8. 07 3月, 2016 1 次提交
  9. 26 2月, 2016 1 次提交
  10. 19 9月, 2015 1 次提交
  11. 09 7月, 2015 1 次提交
  12. 07 11月, 2014 1 次提交
  13. 13 2月, 2014 3 次提交
  14. 22 1月, 2014 1 次提交
  15. 20 1月, 2014 1 次提交
  16. 17 1月, 2014 1 次提交
  17. 14 1月, 2014 1 次提交
  18. 28 12月, 2013 1 次提交
    • J
      net_sched: act: Dont increment refcnt on replace · 1a29321e
      Jamal Hadi Salim 提交于
       This is a bug fix. The existing code tries to kill many
       birds with one stone: Handling binding of actions to
       filters, new actions and replacing of action
       attributes. A simple test case to illustrate:
      
      XXXX
       moja@fe1:~$ sudo tc actions add action drop index 12
       moja@fe1:~$ actions get action gact index 12
       action order 1: gact action drop
        random type none pass val 0
        index 12 ref 1 bind 0
       moja@fe1:~$ sudo tc actions replace action ok index 12
       moja@fe1:~$ actions get action gact index 12
       action order 1: gact action drop
        random type none pass val 0
        index 12 ref 2 bind 0
      XXXX
      
      The above shows the refcounf being wrongly incremented on replace.
      There are more complex scenarios with binding of actions to filters
      that i am leaving out that didnt work as well...
      Signed-off-by: NJamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1a29321e
  19. 21 12月, 2013 1 次提交
  20. 19 12月, 2013 1 次提交
  21. 06 12月, 2013 2 次提交
  22. 02 5月, 2013 1 次提交
  23. 16 2月, 2013 1 次提交
  24. 15 1月, 2013 1 次提交
  25. 07 8月, 2012 1 次提交
  26. 16 5月, 2012 1 次提交
  27. 02 4月, 2012 1 次提交
  28. 06 7月, 2011 1 次提交
  29. 20 1月, 2011 1 次提交
  30. 11 1月, 2011 1 次提交
  31. 14 10月, 2010 2 次提交
  32. 18 5月, 2010 1 次提交