18 Dec, 2006

3 commits


14 Dec, 2006

5 commits


13 Dec, 2006

1 commit


12 Dec, 2006

2 commits

  • Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Simon Horman
     
  • Dean Manners notices that when an IPVS synchonisation daemons are
    started the system load slowly climbs up to 1. This seems to be related
    to the call to ssleep(1) (aka msleep(1000) in the main loop. Replacing
    this with a call to msleep_interruptable() seems to make the problem go
    away. Though I'm not sure that it is correct.

    This is the second edition of this patch, which replaces ssleep()
    in the main loop for both the master and backup threads, as well
    as some thread synchronisation code. The latter is just for thorougness
    as it shouldn't be causing any problems.

    Signed-Off-By: Simon Horman
    Signed-off-by: David S. Miller

    Simon Horman
     

11 Dec, 2006

1 commit


09 Dec, 2006

2 commits


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
     
  • 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_KERNEL is an alias of GFP_KERNEL.

    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

6 commits

  • As per Ralf Baechle's observations, the schedule_work() call
    should give enough of a memory barrier, so the explicit one
    here is totally unnecessary.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • I believe all the below memory barriers only matter on SMP so
    therefore the smp_* variant of the barrier should be used.

    I'm wondering if the barrier in net/ipv4/inet_timewait_sock.c should be
    dropped entirely. schedule_work's implementation currently implies a
    memory barrier and I think sane semantics of schedule_work() should imply
    a memory barrier, as needed so the caller shouldn't have to worry.
    It's not quite obvious why the barrier in net/packet/af_packet.c is
    needed; maybe it should be implied through flush_dcache_page?

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

    Ralf Baechle
     
  • We grab a reference to the route's inetpeer entry but
    forget to release it in xfrm4_dst_destroy().

    Bug discovered by Kazunori MIYAZAWA

    Signed-off-by: David S. Miller

    David S. Miller
     
  • In compat mode, matches and targets valid hooks checks always successful due
    to not initialized e->comefrom field yet. This patch separates this checks from
    translation code and moves them after mark_source_chains() call, where these
    marks are initialized.

    Signed-off-by: Dmitry Mishin
    Signed-off-by; Patrick McHardy
    Signed-off-by: David S. Miller

    Dmitry Mishin
     
  • Commit 590bdf7fd2292b47c428111cb1360e312eff207e introduced a regression
    in match/target hook validation. mark_source_chains builds a bitmask
    for each rule representing the hooks it can be reached from, which is
    then used by the matches and targets to make sure they are only called
    from valid hooks. The patch moved the match/target specific validation
    before the mark_source_chains call, at which point the mask is always zero.

    This patch returns back to the old order and moves the standard checks
    to mark_source_chains. This allows to get rid of a special case for
    standard targets as a nice side-effect.

    Signed-off-by: Dmitry Mishin
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Dmitry Mishin
     
  • Currently the behaviour of disable_xfrm is inconsistent between
    locally generated and forwarded packets. For locally generated
    packets disable_xfrm disables the policy lookup if it is set on
    the output device, for forwarded traffic however it looks at the
    input device. This makes it impossible to disable xfrm on all
    devices but a dummy device and use normal routing to direct
    traffic to that device.

    Always use the output device when checking disable_xfrm.

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

    Patrick McHardy
     

06 Dec, 2006

1 commit


05 Dec, 2006

1 commit


04 Dec, 2006

2 commits


03 Dec, 2006

12 commits