1. 27 1月, 2013 4 次提交
  2. 24 1月, 2013 21 次提交
  3. 23 1月, 2013 15 次提交
    • P
      netfilter: nf_conntrack: fix compilation if sysctl are disabled · 5f9f946b
      Pablo Neira Ayuso 提交于
      In (f94161c1 netfilter: nf_conntrack: move initialization out of pernet
      operations), some ifdefs were missing for sysctl dependent code.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5f9f946b
    • G
      netfilter: nf_conntrack: refactor l4proto support for netns · c296bb4d
      Gao feng 提交于
      Move the code that register/unregister l4proto to the
      module_init/exit context.
      
      Given that we have to modify some interfaces to accomodate
      these changes, it is a good time to use shorter function names
      for this using the nf_ct_* prefix instead of nf_conntrack_*,
      that is:
      
      nf_ct_l4proto_register
      nf_ct_l4proto_pernet_register
      nf_ct_l4proto_unregister
      nf_ct_l4proto_pernet_unregister
      
      We same many line breaks with it.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      c296bb4d
    • G
      netfilter: nf_conntrack: refactor l3proto support for netns · 6330750d
      Gao feng 提交于
      Move the code that register/unregister l3proto to the
      module_init/exit context.
      
      Given that we have to modify some interfaces to accomodate
      these changes, it is a good time to use shorter function names
      for this using the nf_ct_* prefix instead of nf_conntrack_*,
      that is:
      
      nf_ct_l3proto_register
      nf_ct_l3proto_pernet_register
      nf_ct_l3proto_unregister
      nf_ct_l3proto_pernet_unregister
      
      We same many line breaks with it.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      6330750d
    • G
      netfilter: nf_ct_proto: move initialization out of pernet_operations · 04d87001
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      04d87001
    • G
      netfilter: nf_ct_labels: move initialization out of pernet_operations · 5f69b8f5
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5f69b8f5
    • G
      netfilter: nf_ct_helper: move initialization out of pernet_operations · 5e615b22
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5e615b22
    • G
      netfilter: nf_ct_timeout: move initialization out of pernet_operations · 8684094c
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      8684094c
    • G
      netfilter: nf_ct_ecache: move initialization out of pernet_operations · 3fe0f943
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      3fe0f943
    • G
      netfilter: nf_ct_tstamp: move initialization out of pernet_operations · 73f4001a
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      73f4001a
    • G
      netfilter: nf_ct_acct: move initialization out of pernet_operations · b7ff3a1f
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      b7ff3a1f
    • G
      netfilter: nf_ct_expect: move initialization out of pernet_operations · 83b4dbe1
      Gao feng 提交于
      Move the global initial codes to the module_init/exit context.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      83b4dbe1
    • G
      netfilter: nf_conntrack: move initialization out of pernet operations · f94161c1
      Gao feng 提交于
      nf_conntrack initialization and cleanup codes happens in pernet
      operations function. This task should be done in module_init/exit.
      We can't use init_net to identify if it's the right time to initialize
      or cleanup since we cannot make assumption on the order netns are
      created/destroyed.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      f94161c1
    • C
      netpoll: fix an uninitialized variable · e39363a9
      Cong Wang 提交于
      Fengguang reported:
      
         net/core/netpoll.c: In function 'netpoll_setup':
         net/core/netpoll.c:1049:6: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      in !CONFIG_IPV6 case, we may error out without initializing
      'err'.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NCong Wang <amwang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e39363a9
    • C
      ipv6: remove duplicated declaration of ip6_fragment() · 9647bb80
      Cong Wang 提交于
      It is declared in:
      include/net/ip6_route.h:187:int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
      
      and net/ip6_route.h is already included.
      
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NCong Wang <amwang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9647bb80
    • D
      Merge branch 'legacy-isa-delete' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux · 930d52c0
      David S. Miller 提交于
      Paul Gortmaker says:
      
      ====================
      The Ethernet-HowTo was maintained for roughly 10 years, from 1993 to 2003.
      Fortunately sane hardware probing and auto detection (via PCI and ISA/PnP)
      largely made the document a relic of the past, hence it being abandoned
      a decade ago.
      
      However, there is one last useful thing that we can extract from the
      effort made in maintaining that document.  We can use it to guide us
      with respect to what rare, experimental and/or super ancient 10Mbit
      ISA drivers don't make sense to maintain in-tree anymore.
      
      Nobody will argue that ISA is obsolete.  Availability went away at about
      the time Pentium3 motherboards moved from 500MHz Slot1/SECC processors
      to the green 500MHz Socket 370 Pentium3 chips, at the turn of the century.
      
      In theory, it is possible that someone could still be running one of these
      12+ year old P3 machines and want 3.9+ bleeding edge kernels (but unlikely).
      In light of the above (remote) possibility, we can defer the removal of some
      ISA network drivers that were highly popular and well tested.  Typically
      that means the stuff more from the mid to late '90s, some with ISA PnP
      support, like the 3c509, the wd/SMC 8390 based stuff, PCnet/lance etc.
      
      But a lot of other drivers, typically from the early 1990s were for rare
      hardware, and experimental (to the point of requiring a cron job that would
      do a test ping, and then ifconfig down/up and/or a rmmod/insmod!).  And
      some of these drivers (znet, and lp486e to name two) are physically tied
      to platforms with on motherboard ethernet -- of 486 machines that date
      from the early 1990s and can only have single digit amounts of memory.
      
      What I'd like to achieve here with this series, is to get rid of those old
      drivers that are no longer being used.  In an earlier discussion where
      I'd proposed deleting a single driver, Alan suggested we instead dump
      all the historical stuff in one go, to make it "...immediately obvious
      where the break point is..."[1] and that it was "perfectly reasonable it
      (and a pile of other ISA cards) ought to be shown the door"[2].  So that
      is the goal here - make a clear line in the sand where the really ancient
      stuff finally gets kicked to the curb.
      
      Two old parallel port drivers are considered for removal here as well,
      since in early 386/486 ISA machines, the parallel port was typically found
      with the UARTS on the multi-I/O ISA controller card.  These drivers also date
      from the early 1990's; parallel ports are no longer found on modern boards,
      and their performance was not even capable of 10% of 10Mbit bandwidth.
      
      Allow me a preemptive justification against the inevitable comments from
      well meaning bystanders who suggest "why not just leave all this alone?".
      Dead drivers cost us all if they are left in tree.  If you think that
      is false, then please first consider:
      
      -every time you type "git status", you are checking to see if modifications
       have been made by you to all that dead code.
      
      -every time you type "git grep <regex>" you are searching through files
       which contain that dead code that simply does not interest you.
      
      -every time you build a "allyesconfig" and an "allmodconfig" (don't tell
       me you skip this step before submitting your changes to a maintainer),
       you waste CPU cycles building this dead code.
      
      -every time there is a tree wide API change, or cleanup, or file relocation,
       we pay the cost of updating dead code, or moving dead code.
      
      -daily regression tests (take linux-next as the most transparent
       example) spend time building (and possibly running) this dead code.
      
      -hard working people who regularly run auditing tools looking for lurking
       bugs (sparse/coverity/smatch/coccinelle) are wasting time checking for,
       and fixing bugs in this dead code.
      
      This last one is key.  Please take a look at the git history for the
      files that are proposed for removal here.  Look at the git history for
      any one of them ("git whatchanged --follow drivers/net/.../driver.c")
      Mentally sort the changes into two bins -- (1) the robotic tree-wide
      changes, and (2) the "look I found a real run-time bug while using this"
      category.  You will see that category #2 is essentially empty.
      
      Further to that, realize that drivers don't simply disappear.  We are
      not operating in the binary-only distribution space like other OS.  All
      these drivers remain in the git history forever.  If a person is an
      enthusiast for extreme legacy hardware, they are probably already
      customizing their kernel source and building it themselves to support
      such systems.  Also keep in mind that they could still build the 3.8
      kernel exactly as-is, and run it (or a 3.8.x stable variant of it) for
      several more years if they were really determined to cling to these old
      experimental ISA drivers for some reason.
      
      In summary, I hope that folks can be pragmatic about this, and not
      get swept up in nostalgia.  Ask yourself whether it is realistic to
      expect a person would have a genuine use case where they would
      need to build a 3.9+ modern kernel and install it on some legacy hardware
      that has no option but to absolutely _require_ one of the drivers
      that are deleted here.
      
      The following series was created with --irreversible-delete for
      ease of review (it skips showing the content of files that are
      deleted); however the complete patches can be pulled as per below.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      930d52c0