1. 30 8月, 2005 3 次提交
    • A
      [SOCK]: Introduce sk_setup_caps · 6cbb0df7
      Arnaldo Carvalho de Melo 提交于
      From tcp_v4_setup_caps, that always is preceded by a call to
      __sk_dst_set, so coalesce this sequence into sk_setup_caps, removing
      one call to a TCP function in the IP layer.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6cbb0df7
    • A
      [IPV4]: possible cleanups · 0742fd53
      Adrian Bunk 提交于
      This patch contains the following possible cleanups:
      - make needlessly global code static
      - #if 0 the following unused global function:
        - xfrm4_state.c: xfrm4_state_fini
      - remove the following unneeded EXPORT_SYMBOL's:
        - ip_output.c: ip_finish_output
        - ip_output.c: sysctl_ip_default_ttl
        - fib_frontend.c: ip_dev_find
        - inetpeer.c: inet_peer_idlock
        - ip_options.c: ip_options_compile
        - ip_options.c: ip_options_undo
        - net/core/request_sock.c: sysctl_max_syn_backlog
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0742fd53
    • H
      [NETFILTER]: reduce netfilter sk_buff enlargement · 6869c4d8
      Harald Welte 提交于
      As discussed at netconf'05, we're trying to save every bit in sk_buff.
      The patch below makes sk_buff 8 bytes smaller.  I did some basic
      testing on my notebook and it seems to work.
      
      The only real in-tree user of nfcache was IPVS, who only needs a
      single bit.  Unfortunately I couldn't find some other free bit in
      sk_buff to stuff that bit into, so I introduced a separate field for
      them.  Maybe the IPVS guys can resolve that to further save space.
      
      Initially I wanted to shrink pkt_type to three bits (PACKET_HOST and
      alike are only 6 values defined), but unfortunately the bluetooth code
      overloads pkt_type :(
      
      The conntrack-event-api (out-of-tree) uses nfcache, but Rusty just
      came up with a way how to do it without any skb fields, so it's safe
      to remove it.
      
      - remove all never-implemented 'nfcache' code
      - don't have ipvs code abuse 'nfcache' field. currently get's their own
        compile-conditional skb->ipvs_property field.  IPVS maintainers can
        decide to move this bit elswhere, but nfcache needs to die.
      - remove skb->nfcache field to save 4 bytes
      - move skb->nfctinfo into three unused bits to save further 4 bytes
      Signed-off-by: NHarald Welte <laforge@netfilter.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6869c4d8
  2. 13 7月, 2005 1 次提交
  3. 06 7月, 2005 2 次提交
  4. 29 6月, 2005 1 次提交
    • P
      [NETFILTER]: Fix connection tracking bug in 2.6.12 · 9666dae5
      Patrick McHardy 提交于
      In 2.6.12 we started dropping the conntrack reference when a packet
      leaves the IP layer. This broke connection tracking on a bridge,
      because bridge-netfilter defers calling some NF_IP_* hooks to the bridge
      layer for locally generated packets going out a bridge, where the
      conntrack reference is no longer available. This patch keeps the
      reference in this case as a temporary solution, long term we will
      remove the defered hook calling. No attempt is made to drop the
      reference in the bridge-code when it is no longer needed, tc actions
      could already have sent the packet anywhere.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9666dae5
  5. 22 6月, 2005 1 次提交
  6. 19 5月, 2005 1 次提交
    • H
      [IPV4/IPV6] Ensure all frag_list members have NULL sk · 2fdba6b0
      Herbert Xu 提交于
      Having frag_list members which holds wmem of an sk leads to nightmares
      with partially cloned frag skb's.  The reason is that once you unleash
      a skb with a frag_list that has individual sk ownerships into the stack
      you can never undo those ownerships safely as they may have been cloned
      by things like netfilter.  Since we have to undo them in order to make
      skb_linearize happy this approach leads to a dead-end.
      
      So let's go the other way and make this an invariant:
      
      	For any skb on a frag_list, skb->sk must be NULL.
      
      That is, the socket ownership always belongs to the head skb.
      It turns out that the implementation is actually pretty simple.
      
      The above invariant is actually violated in the following patch
      for a short duration inside ip_fragment.  This is OK because the
      offending frag_list member is either destroyed at the end of the
      slow path without being sent anywhere, or it is detached from
      the frag_list before being sent.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2fdba6b0
  7. 06 5月, 2005 1 次提交
  8. 04 5月, 2005 1 次提交
  9. 26 4月, 2005 1 次提交
  10. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4