28 Oct, 2007

3 commits


27 Oct, 2007

4 commits


26 Oct, 2007

17 commits

  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (32 commits)
    [NetLabel]: correct usage of RCU locking
    [TCP]: fix D-SACK cwnd handling
    [NET] napi: use non-interruptible sleep in napi_disable
    [SCTP] net/sctp/auth.c: make 3 functions static
    [TCP]: Add missing I/O AT code to ipv6 side.
    [SCTP]: #if 0 sctp_update_copy_cksum()
    [INET]: Unexport icmpmsg_statistics
    [NET]: Unexport sock_enable_timestamp().
    [TCP]: Make tcp_match_skb_to_sack() static.
    [IRDA]: Make ircomm_tty static.
    [NET] fs/proc/proc_net.c: make a struct static
    [NET] dev_change_name: ignore changes to same name
    [NET]: Document some simple rules for actions
    [NET_CLS_ACT]: Use skb_act_clone
    [NET_CLS_ACT]: Introduce skb_act_clone
    [TCP]: Fix scatterlist handling in MD5 signature support.
    [IPSEC]: Fix scatterlist handling in skb_icv_walk().
    [IPSEC]: Add missing sg_init_table() calls to ESP.
    [CRYPTO]: Initialize TCRYPT on-stack scatterlist objects correctly.
    [CRYPTO]: HMAC needs some more scatterlist fixups.
    ...

    Linus Torvalds
     
  • [PATCH] De-constify sched.h

    This reverts commit a8972ccf00b7184a743eb6cd9bc7f3443357910c ("sched:
    constify sched.h")

    1) Patch doesn't change any code here, so gcc is already smart enough
    to "feel" constness in such simple functions.
    2) There is no such thing as const task_struct. Anyone who think
    otherwise deserves compiler warning.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • The current napi_disable() uses msleep_interruptible() but doesn't
    (and can't) exit in case there's a signal, thus ending up doing a
    hot spin without a cpu_relax. Use uninterruptible sleep instead.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Jeff Garzik
    Signed-off-by: David S. Miller

    Benjamin Herrenschmidt
     
  • This patch makes three needlessly global functions static.

    Signed-off-by: Adrian Bunk
    Acked-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • sctp_update_copy_cksum() is no longer used.

    Signed-off-by: Adrian Bunk
    Acked-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • ircomm_tty can now become static.

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

    Adrian Bunk
     
  • David S. Miller
     
  • Reworked skb_clone looks uglier with the single ifdef
    CONFIG_NET_CLS_ACT This patch introduces skb_act_clone which will
    replace skb_clone in tc actions

    Signed-off-by: Jamal Hadi Salim
    Signed-off-by: David S. Miller

    Jamal Hadi Salim
     
  • UDP currently uses skb->dev->ifindex which may provide the wrong
    information when the socket bound to a specific interface.
    This patch makes inet_iif() accessible to UDP and makes UDP use it.

    The scenario we are trying to fix is when a client is running on
    the same system and the server and both client and server bind to
    a non-loopback device.

    Signed-off-by: Vlad Yasevich
    Acked-by: David L Stevens
    Signed-off-by: David S. Miller

    Vlad Yasevich
     
  • Coding style cleanups:

    - change __inline__ to inline;
    - drop space in "* addr" parameters;
    - drop space between func. name and '('

    The "volatile" keywords are correct according to email from one
    Linus Torvalds.

    [Several other arches need some of this also.]

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Use duplicated inline functions for test_and_set_bit_lock() on x86
    instead of #define macros, thus avoiding a bad example. This allows
    kernel-doc to run cleanly instead of terminating with an error:

    Error(linux-2.6.24-rc1//include/asm-x86/bitops_32.h:188): cannot understand prototype: 'test_and_set_bit_lock test_and_set_bit '

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    [IPV4]: Explicitly call fib_get_table() in fib_frontend.c
    [NET]: Use BUILD_BUG_ON in net/core/flowi.c
    [NET]: Remove in-code externs for some functions from net/core/dev.c
    [NET]: Don't declare extern variables in net/core/sysctl_net_core.c
    [TCP]: Remove unneeded implicit type cast when calling tcp_minshall_update()
    [NET]: Treat the sign of the result of skb_headroom() consistently
    [9P]: Fix missing unlock before return in p9_mux_poll_start
    [PKT_SCHED]: Fix sch_prio.c build with CONFIG_NETDEVICES_MULTIQUEUE
    [IPV4] ip_gre: sendto/recvfrom NBMA address
    [SCTP]: Consolidate sctp_ulpq_renege_xxx functions
    [NETLINK]: Fix ACK processing after netlink_dump_start
    [VLAN]: MAINTAINERS update
    [DCCP]: Implement SIOCINQ/FIONREAD
    [NET]: Validate device addr prior to interface-up

    Linus Torvalds
     
  • * 'sg' of git://git.kernel.dk/linux-2.6-block:
    fix sg_phys to use dma_addr_t
    ub: add sg_init_table for sense and read capacity commands
    x86: pci-gart fix
    blackfin: fix sg fallout
    xtensa: dma-mapping.h is using linux/scatterlist.h functions, so include it
    SG: audit of drivers that use blk_rq_map_sg()
    arch/um/drivers/ubd_kern.c: fix a building error
    SG: Change sg_set_page() to take length and offset argument
    AVR32: Fix sg_page breakage
    mmc: sg fallout
    m68k: sg fallout
    More SG build fixes
    sg: add missing sg_init_table calls to zfcp
    SG build fix

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest:
    lguest: documentation update
    lguest: Add to maintainers file.
    lguest: build fix
    lguest: clean up lguest_launcher.h
    lguest: remove unused "wake" element from struct lguest
    lguest: use defines from x86 headers instead of magic numbers
    lguest: example launcher header cleanup.

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    [netdrvr] forcedeth: add MCP77 device IDs
    rndis_host: reduce MTU instead of refusing to talk to devices with low max packet size
    cpmac: update to new fixed phy driver interface
    cpmac: convert to napi_struct interface
    cpmac: use print_mac() instead of MAC_FMT
    natsemi: fix oops, link back netdevice from private-struct
    ehea: fix port_napi_disable/enable
    bonding/bond_main.c: fix cut'n'paste error
    make bonding/bond_main.c:bond_deinit() static
    drivers/net/ipg.c: cleanups
    remove Documentation/networking/net-modules.txt

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
    sched: mark CONFIG_FAIR_GROUP_SCHED as !EXPERIMENTAL
    sched: isolate SMP balancing code a bit more
    sched: reduce balance-tasks overhead
    sched: make cpu_shares_{show,store}() static
    sched: clean up some control group code
    sched: constify sched.h
    sched: document profile=sleep requiring CONFIG_SCHEDSTATS
    sched: use show_regs() to improve __schedule_bug() output
    sched: clean up sched_domain_debug()
    sched: fix fastcall mismatch in completion APIs
    sched: fix sched_domain sysctl registration again

    Linus Torvalds
     
  • The __deprecated marker is quite useful in highlighting the remnants of
    old APIs that want removing.

    However, it is quite normal for one or more years to pass, before the
    (usually ancient, bitrotten) code in question is either updated or
    deleted.

    Thus, like __must_check, add a Kconfig option that permits the silencing
    of this compiler warning.

    This change mimics the ifdef-ery and Kconfig defaults of MUST_CHECK as
    closely as possible.

    Signed-off-by: Jeff Garzik
    Signed-off-by: Linus Torvalds

    Jeff Garzik
     

25 Oct, 2007

8 commits

  • x86_32 CONFIG_HIGHMEM64G with 5GB RAM hung when booting, after issuing
    some "request_module: runaway loop modprobe binfmt-0000" messages in
    trying to exec /sbin/init.

    The binprm buf doesn't see the right ".ELF" header because sg_phys()
    is providing the wrong physical addresses for high pages: a 32-bit
    unsigned long is too small in this case, we need to use dma_addr_t.

    Signed-off-by: Hugh Dickins
    Signed-off-by: Jens Axboe

    Hugh Dickins
     
  • Signed-off-by: Jeff Garzik

    Ayaz Abdulla
     
  • Went through the documentation doing typo and content fixes. This
    patch contains only comment and whitespace changes.

    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • Remove now-unused defines.
    Fix old idempotent #ifndef _ASM_LGUEST_USER name.
    Fix comment on use of lguest_req.

    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • At the moment, a lot of load balancing code that is irrelevant to non
    SMP systems gets included during non SMP builds.

    This patch addresses this issue and reduces the binary size on non
    SMP systems:

    text data bss dec hex filename
    10983 28 1192 12203 2fab sched.o.before
    10739 28 1192 11959 2eb7 sched.o.after

    Signed-off-by: Peter Williams
    Signed-off-by: Ingo Molnar

    Peter Williams
     
  • At the moment, balance_tasks() provides low level functionality for both
    move_tasks() and move_one_task() (indirectly) via the load_balance()
    function (in the sched_class interface) which also provides dual
    functionality. This dual functionality complicates the interfaces and
    internal mechanisms and makes the run time overhead of operations that
    are called with two run queue locks held.

    This patch addresses this issue and reduces the overhead of these
    operations.

    Signed-off-by: Peter Williams
    Signed-off-by: Ingo Molnar

    Peter Williams
     
  • Add const to some struct task_struct * uses

    Signed-off-by: Joe Perches
    Signed-off-by: Ingo Molnar

    Joe Perches
     
  • Jeff Dike noticed that wait_for_completion_interruptible()'s prototype
    had a mismatched fastcall.

    Fix this by removing the fastcall attributes from all the completion APIs.

    Found-by: Jeff Dike
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

24 Oct, 2007

8 commits

  • This adds support for converting the 11 currently defined Reset codes into system
    error numbers, which are stored in sk_err for further interpretation.

    This makes the externally visible API behaviour similar to TCP, since a client
    connecting to a non-existing port will experience ECONNREFUSED.

    * Code 0, Unspecified, is interpreted as non-error (0);
    * Code 1, Closed (normal termination), also maps into 0;
    * Code 2, Aborted, maps into "Connection reset by peer" (ECONNRESET);
    * Code 3, No Connection and
    Code 7, Connection Refused, map into "Connection refused" (ECONNREFUSED);
    * Code 4, Packet Error, maps into "No message of desired type" (ENOMSG);
    * Code 5, Option Error, maps into "Illegal byte sequence" (EILSEQ);
    * Code 6, Mandatory Error, maps into "Operation not supported on transport endpoint" (EOPNOTSUPP);
    * Code 8, Bad Service Code, maps into "Invalid request code" (EBADRQC);
    * Code 9, Too Busy, maps into "Too many users" (EUSERS);
    * Code 10, Bad Init Cookie, maps into "Invalid request descriptor" (EBADR);
    * Code 11, Aggression Penalty, maps into "Quota exceeded" (EDQUOT)
    which makes sense in terms of using more than the `fair share' of bandwidth.

    Signed-off-by: Gerrit Renker
    Acked-by: Ian McDonald
    Signed-off-by: Arnaldo Carvalho de Melo

    Gerrit Renker
     
  • This fixes a problem when analysing erroneous packets in dccp_v{4,6}_err:
    * dccp_hdr_seq currently takes an skb
    * however, the transport headers in the skb are shifted, due to the
    preceding IPv4/v6 header.
    Fixed for v4 and v6 by changing dccp_hdr_seq to take a struct dccp_hdr as
    argument. Verified that the correct sequence number is now reported in the
    error handler.

    Signed-off-by: Gerrit Renker
    Acked-by: Ian McDonald
    Signed-off-by: Arnaldo Carvalho de Melo

    Gerrit Renker
     
  • It's currently using asm/scatterlist.h, but that is not enough.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • …innemoen/avr32-2.6 into sg

    Jens Axboe
     
  • Most drivers need to set length and offset as well, so may as well fold
    those three lines into one.

    Add sg_assign_page() for those two locations that only needed to set
    the page, where the offset/length is set outside of the function context.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • The latest sg changes introduce the following build errors on AVR32:

    include/asm/dma-mapping.h: In function ‘dma_map_sg’:
    include/asm/dma-mapping.h:220: error: implicit declaration of function ‘sg_page’
    include/asm/dma-mapping.h:220: error: invalid operands to binary -
    include/asm/dma-mapping.h:221: error: implicit declaration of function ‘sg_virt’
    include/asm/dma-mapping.h:221: warning: assignment makes pointer from integer without a cast
    include/asm/dma-mapping.h: In function ‘dma_sync_sg_for_device’:
    include/asm/dma-mapping.h:330: warning: passing argument 2 of ‘dma_cache_sync’ makes pointer from integer without a cast

    Fix it by including the correct header file, i.e. linux/scatterlist.h
    instead of asm/scatterlist.h.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Some are already declared in include/linux/netdevice.h, while
    some others (xfrm ones) need to be declared.

    The driver/net/rrunner.c just uses same extern as well, so
    cleanup it also.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • The tcp_minshall_update() function is called in exactly one place, and is
    passed an unsigned integer for the mss_len argument. Make the sign of the
    argument match the sign of the passed variable in order to eliminate an
    unneeded implicit type cast and a mixed sign comparison in
    tcp_minshall_update().

    Signed-off-by: Chuck Lever
    Signed-off-by: David S. Miller

    Chuck Lever