1. 29 11月, 2017 1 次提交
  2. 14 9月, 2017 1 次提交
  3. 05 6月, 2017 1 次提交
  4. 13 3月, 2017 1 次提交
  5. 31 1月, 2017 1 次提交
  6. 09 1月, 2017 1 次提交
  7. 25 12月, 2016 1 次提交
  8. 13 10月, 2016 1 次提交
    • J
      net: deprecate eth_change_mtu, remove usage · a52ad514
      Jarod Wilson 提交于
      With centralized MTU checking, there's nothing productive done by
      eth_change_mtu that isn't already done in dev_set_mtu, so mark it as
      deprecated and remove all usage of it in the kernel. All callers have been
      audited for calls to alloc_etherdev* or ether_setup directly, which means
      they all have a valid dev->min_mtu and dev->max_mtu. Now eth_change_mtu
      prints out a netdev_warn about being deprecated, for the benefit of
      out-of-tree drivers that might be utilizing it.
      
      Of note, dvb_net.c actually had dev->mtu = 4096, while using
      eth_change_mtu, meaning that if you ever tried changing it's mtu, you
      couldn't set it above 1500 anymore. It's now getting dev->max_mtu also set
      to 4096 to remedy that.
      
      v2: fix up lantiq_etop, missed breakage due to drive not compiling on x86
      
      CC: netdev@vger.kernel.org
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a52ad514
  9. 05 5月, 2016 1 次提交
  10. 16 10月, 2015 1 次提交
  11. 22 6月, 2015 1 次提交
  12. 04 5月, 2015 8 次提交
  13. 18 3月, 2015 1 次提交
  14. 25 2月, 2015 1 次提交
  15. 20 1月, 2015 1 次提交
  16. 14 1月, 2015 1 次提交
  17. 20 10月, 2014 1 次提交
  18. 13 8月, 2014 1 次提交
  19. 13 6月, 2014 1 次提交
  20. 06 5月, 2014 1 次提交
    • A
      net: via-rhine: Convert #ifdef USE_MMIO to a runtime flag · 5b579e21
      Alexey Charkov 提交于
      This introduces another flag in 'quirks' to replace the preprocessor
      define (USE_MMIO) used to indicate whether the device needs a
      separate enable routine to operate in MMIO mode.
      
      All of the currently known platform Rhine cores operate in MMIO
      mode by default, and on PCI it is preferred over PIO for performance
      reasons. However, a comment in code suggests that some (?) early
      Rhine cores only work in PIO mode, so they should not be switched
      to MMIO.
      
      Enabling MMIO on PCI is still triggered by the same Kconfig option
      to avoid breaking user configs needlessly, but this can be changed
      going forward towards automatic runtime detection in case a list of
      PIO-only Rhine revisions can be compiled.
      
      This also fixes a couple of compiler warnings detected by Fengguang
      Wu's test bot (!USE_MMIO case):
      
         drivers/net/ethernet/via/via-rhine.c: In function 'rhine_init_one_pci':
         drivers/net/ethernet/via/via-rhine.c:1108:1: warning: label 'err_out_unmap' defined but not used [-Wunused-label]
          err_out_unmap:
          ^
         drivers/net/ethernet/via/via-rhine.c:1022:6: warning: unused variable 'i' [-Wunused-variable]
           int i, rc;
               ^
         drivers/net/ethernet/via/via-rhine.c:916:22: warning: 'quirks' may be used uninitialized in this function [-Wmaybe-uninitialized]
           phy_id = rp->quirks & rqIntPHY ? 1 : 0;
                               ^
         drivers/net/ethernet/via/via-rhine.c:1026:6: note: 'quirks' was declared here
           u32 quirks;
               ^
      Signed-off-by: NAlexey Charkov <alchark@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5b579e21
  21. 03 5月, 2014 1 次提交
  22. 24 4月, 2014 3 次提交
  23. 25 3月, 2014 1 次提交
  24. 20 3月, 2014 1 次提交
  25. 19 3月, 2014 1 次提交
  26. 15 3月, 2014 1 次提交
  27. 16 1月, 2014 1 次提交
  28. 06 11月, 2013 1 次提交
    • J
      net: Explicitly initialize u64_stats_sync structures for lockdep · 827da44c
      John Stultz 提交于
      In order to enable lockdep on seqcount/seqlock structures, we
      must explicitly initialize any locks.
      
      The u64_stats_sync structure, uses a seqcount, and thus we need
      to introduce a u64_stats_init() function and use it to initialize
      the structure.
      
      This unfortunately adds a lot of fairly trivial initialization code
      to a number of drivers. But the benefit of ensuring correctness makes
      this worth while.
      
      Because these changes are required for lockdep to be enabled, and the
      changes are quite trivial, I've not yet split this patch out into 30-some
      separate patches, as I figured it would be better to get the various
      maintainers thoughts on how to best merge this change along with
      the seqcount lockdep enablement.
      
      Feedback would be appreciated!
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      Acked-by: NJulian Anastasov <ja@ssi.bg>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: James Morris <jmorris@namei.org>
      Cc: Jesse Gross <jesse@nicira.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Mirko Lindner <mlindner@marvell.com>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: Roger Luethi <rl@hellgate.ch>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Simon Horman <horms@verge.net.au>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Wensong Zhang <wensong@linux-vs.org>
      Cc: netdev@vger.kernel.org
      Link: http://lkml.kernel.org/r/1381186321-4906-2-git-send-email-john.stultz@linaro.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      827da44c
  29. 24 10月, 2013 1 次提交
  30. 27 9月, 2013 1 次提交
  31. 10 8月, 2013 1 次提交