1. 03 3月, 2015 1 次提交
  2. 16 7月, 2014 1 次提交
    • T
      net: set name_assign_type in alloc_netdev() · c835a677
      Tom Gundersen 提交于
      Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert
      all users to pass NET_NAME_UNKNOWN.
      
      Coccinelle patch:
      
      @@
      expression sizeof_priv, name, setup, txqs, rxqs, count;
      @@
      
      (
      -alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs)
      +alloc_netdev_mqs(sizeof_priv, name, NET_NAME_UNKNOWN, setup, txqs, rxqs)
      |
      -alloc_netdev_mq(sizeof_priv, name, setup, count)
      +alloc_netdev_mq(sizeof_priv, name, NET_NAME_UNKNOWN, setup, count)
      |
      -alloc_netdev(sizeof_priv, name, setup)
      +alloc_netdev(sizeof_priv, name, NET_NAME_UNKNOWN, setup)
      )
      
      v9: move comments here from the wrong commit
      Signed-off-by: NTom Gundersen <teg@jklm.no>
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c835a677
  3. 17 1月, 2014 1 次提交
  4. 15 1月, 2014 1 次提交
  5. 10 12月, 2013 1 次提交
  6. 24 9月, 2013 1 次提交
  7. 15 5月, 2013 1 次提交
    • E
      net/802/mrp: fix lockdep splat · faff57a9
      Eric Dumazet 提交于
      commit fb745e9a ("net/802/mrp: fix possible race condition when
      calling mrp_pdu_queue()") introduced a lockdep splat.
      
      [   19.735147] =================================
      [   19.735235] [ INFO: inconsistent lock state ]
      [   19.735324] 3.9.2-build-0063 #4 Not tainted
      [   19.735412] ---------------------------------
      [   19.735500] inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage.
      [   19.735592] rmmod/1840 [HC0[0]:SC0[0]:HE1:SE1] takes:
      [   19.735682]  (&(&app->lock)->rlock#2){+.?...}, at: [<f862bb5b>]
      mrp_uninit_applicant+0x69/0xba [mrp]
      
      app->lock is normally taken under softirq context, so disable BH to
      avoid the splat.
      Reported-by: NDenys Fedoryshchenko <denys@visp.net.lb>
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: David Ward <david.ward@ll.mit.edu>
      Cc: Cong Wang <amwang@redhat.com>
      Tested-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      faff57a9
  8. 13 4月, 2013 1 次提交
  9. 08 4月, 2013 1 次提交
    • C
      802: fix a possible race condition · cfbe800b
      Cong Wang 提交于
      (Resend with a better changelog)
      
      garp_pdu_queue() should ways be called with this spin lock.
      garp_uninit_applicant() only holds rtnl lock which is not
      enough here.  A possible race can happen as garp_pdu_rcv()
      is called in BH context:
      
      	garp_pdu_rcv()
      	  |->garp_pdu_parse_msg()
      	    |->garp_pdu_parse_attr()
      	      |-> garp_gid_event()
      
      Found by code inspection.
      
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: David Ward <david.ward@ll.mit.edu>
      Cc: "Jorge Boncompte [DTI2]" <jorge@dti2.net>
      Signed-off-by: NCong Wang <amwang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cfbe800b
  10. 12 2月, 2013 1 次提交
  11. 11 2月, 2013 1 次提交
  12. 16 5月, 2012 2 次提交
    • P
      tokenring: delete all remaining driver support · ee446fd5
      Paul Gortmaker 提交于
      This represents the mass deletion of the of the tokenring support.
      
      It gets rid of:
        - the net/tr.c which the drivers depended on
        - the drivers/net component
        - the Kbuild infrastructure around it
        - any tokenring related CONFIG_ settings in any defconfigs
        - the tokenring headers in the include/linux dir
        - the firmware associated with the tokenring drivers.
        - any associated token ring documentation.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      ee446fd5
    • P
      net: delete all instances of special processing for token ring · 211ed865
      Paul Gortmaker 提交于
      We are going to delete the Token ring support.  This removes any
      special processing in the core networking for token ring, (aside
      from net/tr.c itself), leaving the drivers and remaining tokenring
      support present but inert.
      
      The mass removal of the drivers and net/tr.c will be in a separate
      commit, so that the history of these files that we still care
      about won't have the giant deletion tied into their history.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      211ed865
  13. 10 5月, 2012 1 次提交
    • J
      802: Convert compare_ether_addr to ether_addr_equal · 28b29801
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      28b29801
  14. 21 4月, 2012 2 次提交
  15. 16 4月, 2012 1 次提交
  16. 14 4月, 2012 1 次提交
  17. 02 4月, 2012 1 次提交
    • D
      net/garp: avoid infinite loop if attribute already exists · 67378563
      David Ward 提交于
      An infinite loop occurred if garp_attr_create was called with the values
      of an existing attribute. This might happen if a previous leave request
      for the attribute has not yet been followed by a PDU transmission (or,
      if the application previously issued a join request for the attribute
      and is now issuing another one, without having issued a leave request).
      
      If garp_attr_create finds an existing attribute having the same values,
      return the address to it. Its state will then get updated (i.e., if it
      was in a leaving state, it will move into a non-leaving state and not
      get deleted during the next PDU transmission).
      
      To accomplish this fix, collapse garp_attr_insert into garp_attr_create
      (which is its only caller).
      
      Thanks to Jorge Boncompte [DTI2] <jorge@dti2.net> for contributing to
      this fix.
      Signed-off-by: NDavid Ward <david.ward@ll.mit.edu>
      Acked-by: NJorge Boncompte [DTI2] <jorge@dti2.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      67378563
  18. 29 3月, 2012 1 次提交
  19. 01 11月, 2011 2 次提交
  20. 02 8月, 2011 1 次提交
  21. 24 5月, 2011 1 次提交
  22. 21 5月, 2011 1 次提交
  23. 13 5月, 2011 1 次提交
    • E
      garp: remove last synchronize_rcu() call · f607a158
      Eric Dumazet 提交于
      When removing last vlan from a device, garp_uninit_applicant() calls
      synchronize_rcu() to make sure no user can still manipulate struct
      garp_applicant before we free it.
      
      Use call_rcu() instead, as a step to further net_device dismantle
      optimizations.
      
      Add the temporary garp_cleanup_module() function to make sure no pending
      call_rcu() are left at module unload time [ this will be removed when
      kfree_rcu() is available ]
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f607a158
  24. 10 5月, 2011 1 次提交
  25. 26 10月, 2010 1 次提交
  26. 24 9月, 2010 1 次提交
  27. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  28. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  29. 12 11月, 2009 1 次提交
    • E
      sysctl net: Remove unused binary sysctl code · f8572d8f
      Eric W. Biederman 提交于
      Now that sys_sysctl is a compatiblity wrapper around /proc/sys
      all sysctl strategy routines, and all ctl_name and strategy
      entries in the sysctl tables are unused, and can be
      revmoed.
      
      In addition neigh_sysctl_register has been modified to no longer
      take a strategy argument and it's callers have been modified not
      to pass one.
      
      Cc: "David Miller" <davem@davemloft.net>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: netdev@vger.kernel.org
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      f8572d8f
  30. 25 5月, 2009 1 次提交
  31. 11 4月, 2009 1 次提交
  32. 07 4月, 2009 1 次提交
  33. 22 3月, 2009 1 次提交
  34. 04 3月, 2009 1 次提交
    • M
      net: fix tokenring license · 42224745
      Meelis Roos 提交于
      Currently, modular tokenring ("tr") lacks a license and fails to load:
      
      tr: module license 'unspecified' taints kernel.
      tr: Unknown symbol proc_net_fops_create
      
      Beacuse of this, no tokenring driver can load if it depends on modular 
      tr. Fix this by adding GPL module license as it is in the kernel.
      
      With this fix, tr module loads fine and tms380 driver also loads. Well, 
      it does'nt work but that's a different bug.
      Signed-off-by: NMeelis Roos <mroos@linux.ee>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42224745
  35. 27 2月, 2009 1 次提交
  36. 23 2月, 2009 1 次提交
  37. 01 2月, 2009 1 次提交
反馈
建议
客服 返回
顶部