1. 19 Sep, 2018 1 commit
  2. 09 Aug, 2017 1 commit
  3. 21 May, 2017 1 commit
  4. 17 Apr, 2017 1 commit
  5. 13 Apr, 2017 1 commit
  6. 04 Dec, 2016 1 commit
  7. 09 Oct, 2015 1 commit
    • Paul Gortmaker's avatar
      net/dcb: make dcbnl.c explicitly non-modular · 36b9ad80
      Paul Gortmaker authored
      The Kconfig currently controlling compilation of this code is:
      
      net/dcb/Kconfig:config DCB
      net/dcb/Kconfig:        bool "Data Center Bridging support"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init translates to device_initcall in the non-modular
      case, the init ordering remains unchanged with this commit.  We can
      change to one of the other priority initcalls (subsys?) at any later
      date, if desired.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is (or is now) already contained at the top of the file in the comments.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Or Gerlitz <ogerlitz@mellanox.com>
      Cc: Anish Bhatt <anish@chelsio.com>
      Cc: John Fastabend <john.r.fastabend@intel.com>
      Cc: Shani Michaeli <shanim@mellanox.com>
      Cc: netdev@vger.kernel.org
      Signed-off-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
      36b9ad80
  8. 07 Mar, 2015 1 commit
  9. 16 Nov, 2014 1 commit
    • Anish Bhatt's avatar
      dcbnl : Disable software interrupts before taking dcb_lock · 52cff74e
      Anish Bhatt authored
      Solves possible lockup issues that can be seen from firmware DCB agents calling
      into the DCB app api.
      
      DCB firmware event queues can be tied in with NAPI so that dcb events are
      generated in softIRQ context. This can results in calls to dcb_*app()
      functions which try to take the dcb_lock.
      
      If the the event triggers while we also have the dcb_lock because lldpad or
      some other agent happened to be issuing a  get/set command we could see a cpu
      lockup.
      
      This code was not originally written with firmware agents in mind, hence
      grabbing dcb_lock from softIRQ context was not considered.
      Signed-off-by: 's avatarAnish Bhatt <anish@chelsio.com>
      Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
      52cff74e
  10. 31 Jul, 2014 1 commit
  11. 17 Jul, 2014 1 commit
  12. 24 Apr, 2014 1 commit
  13. 15 Jan, 2014 1 commit
  14. 06 Dec, 2013 1 commit
  15. 22 Mar, 2013 1 commit
  16. 10 Mar, 2013 1 commit
    • Mathias Krause's avatar
      dcbnl: fix various netlink info leaks · 29cd8ae0
      Mathias Krause authored
      The dcb netlink interface leaks stack memory in various places:
      * perm_addr[] buffer is only filled at max with 12 of the 32 bytes but
        copied completely,
      * no in-kernel driver fills all fields of an IEEE 802.1Qaz subcommand,
        so we're leaking up to 58 bytes for ieee_ets structs, up to 136 bytes
        for ieee_pfc structs, etc.,
      * the same is true for CEE -- no in-kernel driver fills the whole
        struct,
      
      Prevent all of the above stack info leaks by properly initializing the
      buffers/structures involved.
      Signed-off-by: 's avatarMathias Krause <minipli@googlemail.com>
      Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
      29cd8ae0
  17. 09 Mar, 2013 1 commit
  18. 10 Dec, 2012 1 commit
  19. 19 Nov, 2012 1 commit
  20. 10 Sep, 2012 1 commit
  21. 11 Jul, 2012 1 commit
  22. 21 Jun, 2012 1 commit
  23. 14 Jun, 2012 2 commits
  24. 13 Jun, 2012 8 commits
  25. 25 Apr, 2012 1 commit
  26. 05 Apr, 2012 1 commit
    • Amir Vadai's avatar
      net/dcb: Add an optional max rate attribute · 08f10aff
      Amir Vadai authored
      Although not specified in 8021Qaz spec, it could be useful to enable drivers
      whose HW supports setting a rate limit for an ETS TC. This patch adds this
      optional attribute to DCB netlink. To use it, drivers should implement and
      register the callbacks ieee_setmaxrate and ieee_getmaxrate. The units are 64
      bits long and specified in Kbps to enable usage over both slow and very fast
      networks.
      Signed-off-by: 's avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
      08f10aff
  27. 02 Apr, 2012 1 commit
  28. 31 Oct, 2011 2 commits
  29. 06 Oct, 2011 2 commits
  30. 08 Jul, 2011 1 commit