26 Jan, 2007

1 commit


24 Jan, 2007

2 commits

  • Consider the chunk as Out-of-the-Blue if we don't have
    an endpoint. Otherwise discard it as before.

    Signed-off-by: Vlad Yasevich
    Signed-off-by: Sridhar Samudrala
    Signed-off-by: David S. Miller

    Vlad Yasevich
     
  • In file included from net/netfilter/xt_state.c:13:
    include/net/netfilter/nf_conntrack_compat.h: In function 'nf_ct_l3proto_try_module_get':
    include/net/netfilter/nf_conntrack_compat.h:70: error: 'PF_INET' undeclared (first use in this function)
    include/net/netfilter/nf_conntrack_compat.h:70: error: (Each undeclared identifier is reported only once
    include/net/netfilter/nf_conntrack_compat.h:70: error: for each function it appears in.)
    include/net/netfilter/nf_conntrack_compat.h:71: warning: control reaches end of non-void function
    make[2]: *** [net/netfilter/xt_state.o] Error 1
    make[1]: *** [net/netfilter] Error 2
    make: *** [net] Error 2

    A simple fix is to have nf_conntrack_compat.h #include .

    Signed-off-by: Mikael Pettersson
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Mikael Pettersson
     

08 Jan, 2007

1 commit


05 Jan, 2007

1 commit

  • This reverts the new (unambiguous) definition of the TCP `before'
    relation. As pointed out in an example by Herbert Xu, there is
    existing code which implicitly requires the old definition in order
    to work correctly.

    Signed-off-by: Gerrit Renker
    Signed-off-by: David S. Miller

    Gerrit Renker
     

04 Jan, 2007

1 commit


03 Jan, 2007

1 commit


23 Dec, 2006

4 commits

  • ... duh

    Signed-off-by: Al Viro
    Signed-off-by: David S. Miller

    Al Viro
     
  • This patch makes the following needlessly global functions static:
    - ipv6.c: sctp_inet6addr_event()
    - protocol.c: sctp_inetaddr_event()

    Signed-off-by: Adrian Bunk
    Signed-off-by: Sridhar Samudrala
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • Signed-off-by: Ivan Skytte Jorgensen
    Signed-off-by: Sridhar Samudrala
    Signed-off-by: David S. Miller

    Ivan Skytte Jorgensen
     
  • While looking at DCCP sequence numbers, I stumbled over a problem with
    the following definition of before in tcp.h:

    static inline int before(__u32 seq1, __u32 seq2)
    {
    return (__s32)(seq1-seq2) < 0;
    }

    Problem: This definition suffers from an an ambiguity, i.e. always

    before(a, (a + 2^31) % 2^32)) = 1
    before((a + 2^31) % 2^32), a) = 1

    In text: when the difference between a and b amounts to 2^31,
    a is always considered `before' b, the function can not decide.
    The reason is that implicitly 0 is `before' 1 ... 2^31-1 ... 2^31

    Solution: There is a simple fix, by defining before in such a way that
    0 is no longer `before' 2^31, i.e. 0 `before' 1 ... 2^31-1
    By not using the middle between 0 and 2^32, before can be made
    unambiguous.
    This is achieved by testing whether seq2-seq1 > 0 (using signed
    32-bit arithmetic).

    I attach a patch to codify this. Also the `after' relation is basically
    a redefinition of `before', it is now defined as a macro after before.

    Signed-off-by: Gerrit Renker
    Signed-off-by: David S. Miller

    Gerrit Renker
     

18 Dec, 2006

4 commits


14 Dec, 2006

5 commits


12 Dec, 2006

1 commit


11 Dec, 2006

1 commit


09 Dec, 2006

4 commits

  • Only the callsign but not the SSID part of an AX.25 address is ASCII
    based but Linux by initializes the SSID which should be just a 4-bit
    number from ASCII anyway.

    Fix that and convert the code to use a shared constant for both default
    addresses. While at it, use the same style for null_ax25_address also.

    Signed-off-by: Ralf Baechle
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • The hard header cache is in the main output path, so using
    seqlock instead of reader/writer lock should reduce overhead.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • This is the core of the switch to the new framework. I've split it from the
    driver patches which are mostly search/replace and would encourage people to
    give this one a good hard stare.

    The references to BOTHER and ISHIFT are the termios values that must be
    defined by a platform once it wants to turn on "new style" ioctl support. The
    code patches here ensure that providing

    1. The termios overlays the ktermios in memory
    2. The only new kernel only fields are c_ispeed/c_ospeed (or none)

    the existing behaviour is retained. This is true for the patches at this
    point in time.

    Future patches will define BOTHER, ISHIFT and enable newer termios structures
    for each architecture, and once they are all done some of the ifdefs also
    vanish.

    [akpm@osdl.org: warning fix]
    [akpm@osdl.org: IRDA fix]
    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     

08 Dec, 2006

4 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (48 commits)
    [NETFILTER]: Fix non-ANSI func. decl.
    [TG3]: Identify Serdes devices more clearly.
    [TG3]: Use msleep.
    [TG3]: Use netif_msg_*.
    [TG3]: Allow partial speed advertisement.
    [TG3]: Add TG3_FLG2_IS_NIC flag.
    [TG3]: Add 5787F device ID.
    [TG3]: Fix Phy loopback.
    [WANROUTER]: Kill kmalloc debugging code.
    [TCP] inet_twdr_hangman: Delete unnecessary memory barrier().
    [NET]: Memory barrier cleanups
    [IPSEC]: Fix inetpeer leak in ipv4 xfrm dst entries.
    audit: disable ipsec auditing when CONFIG_AUDITSYSCALL=n
    audit: Add auditing to ipsec
    [IRDA] irlan: Fix compile warning when CONFIG_PROC_FS=n
    [IrDA]: Incorrect TTP header reservation
    [IrDA]: PXA FIR code device model conversion
    [GENETLINK]: Fix misplaced command flags.
    [NETLIK]: Add a pointer to the Generic Netlink wiki page.
    [IPV6] RAW: Don't release unlocked sock.
    ...

    Linus Torvalds
     
  • Stick NFS sockets in their own class to avoid some lockdep warnings. NFS
    sockets are never exposed to user-space, and will hence not trigger certain
    code paths that would otherwise pose deadlock scenarios.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Peter Zijlstra
    Signed-off-by: Steven Dickson
    Acked-by: Ingo Molnar
    Cc: Trond Myklebust
    Acked-by: Neil Brown
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    [ Fixed patch corruption by quilt, pointed out by Peter Zijlstra ]
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Replace all uses of kmem_cache_t with struct kmem_cache.

    The patch was generated using the following script:

    #!/bin/sh
    #
    # Replace one string by another in all the kernel sources.
    #

    set -e

    for file in `find * -name "*.c" -o -name "*.h"|xargs grep -l $1`; do
    quilt add $file
    sed -e "1,\$s/$1/$2/g" $file >/tmp/$$
    mv /tmp/$$ $file
    quilt refresh
    done

    The script was run like this

    sh replace kmem_cache_t "struct kmem_cache"

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • SLAB_ATOMIC is an alias of GFP_ATOMIC

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     

07 Dec, 2006

3 commits


06 Dec, 2006

1 commit


05 Dec, 2006

1 commit


04 Dec, 2006

2 commits


03 Dec, 2006

3 commits