1. 09 2月, 2007 11 次提交
    • H
      [PACKET]: Add optional checksum computation for recvmsg · 8dc41944
      Herbert Xu 提交于
      This patch is needed to make ISC's DHCP server (and probably other
      DHCP servers/clients using AF_PACKET) to be able to serve another
      client on the same Xen host.
      
      The problem is that packets between different domains on the same
      Xen host only have partial checksums.  Unfortunately this piece of
      information is not passed along in AF_PACKET unless you're using
      the mmap interface.  Since dhcpd doesn't support packet-mmap, UDP
      packets from the same host come out with apparently bogus checksums.
      
      This patch adds a mechanism for AF_PACKET recvmsg(2) to return the
      status along with the packet.  It does so by adding a new cmsg that
      contains this information along with some other relevant data such
      as the original packet length.
      
      I didn't include the time stamp information since there is already
      a cmsg for that.
      
      This patch also changes the mmap code to set the CSUMNOTREADY flag
      on all packets instead of just outoing packets on cooked sockets.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8dc41944
    • D
      [IPV4/IPV6]: Always wait for IPSEC SA resolution in socket contexts. · 8eb9086f
      David S. Miller 提交于
      Do this even for non-blocking sockets.  This avoids the silly -EAGAIN
      that applications can see now, even for non-blocking sockets in some
      cases (f.e. connect()).
      
      With help from Venkat Tekkirala.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8eb9086f
    • F
      [TCP]: remove tcp header from tcp_v4_check (take #2) · ba7808ea
      Frederik Deweerdt 提交于
      The tcphdr struct passed to tcp_v4_check is not used, the following
      patch removes it from the parameter list.
      
      This adds the netfilter modifications missing in the patch I sent
      for rc3-mm1.
      Signed-off-by: NFrederik Deweerdt <frederik.deweerdt@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ba7808ea
    • Y
      [IPV6] ROUTE: Do not route packets to link-local address on other device. · a0d78ebf
      YOSHIFUJI Hideaki 提交于
      With help from Wei Dong <weid@np.css.fujitsu.com>.
      Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0d78ebf
    • P
      [NETLINK]: Don't BUG on undersized allocations · 26932566
      Patrick McHardy 提交于
      Currently netlink users BUG when the allocated skb for an event
      notification is undersized. While this is certainly a kernel bug,
      its not critical and crashing the kernel is too drastic, especially
      when considering that these errors have appeared multiple times in
      the past and it BUGs even if no listeners are present.
      
      This patch replaces BUG by WARN_ON and changes the notification
      functions to inform potential listeners of undersized allocations
      using a unique error code (EMSGSIZE).
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      26932566
    • J
      [NET_SCHED] sch_prio: class statistics printing enabled · 2cf6c36c
      Jarek Poplawski 提交于
      This patch adds a dump_stats callback to enable
      printing of basic statistics of prio classes.
      (With help of Patrick McHardy).
      Signed-off-by: NJarek Poplawski <jarkao2@o2.pl>
      Acked-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2cf6c36c
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/mfasheh/ocfs2 · 5986a2ec
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/mfasheh/ocfs2: (22 commits)
        configfs: Zero terminate data in configfs attribute writes.
        [PATCH] ocfs2 heartbeat: clean up bio submission code
        ocfs2: introduce sc->sc_send_lock to protect outbound outbound messages
        [PATCH] ocfs2: drop INET from Kconfig, not needed
        ocfs2_dlm: Add timeout to dlm join domain
        ocfs2_dlm: Silence some messages during join domain
        ocfs2_dlm: disallow a domain join if node maps mismatch
        ocfs2_dlm: Ensure correct ordering of set/clear refmap bit on lockres
        ocfs2: Binds listener to the configured ip address
        ocfs2_dlm: Calling post handler function in assert master handler
        ocfs2: Added post handler callable function in o2net message handler
        ocfs2_dlm: Cookies in locks not being printed correctly in error messages
        ocfs2_dlm: Silence a failed convert
        ocfs2_dlm: wake up sleepers on the lockres waitqueue
        ocfs2_dlm: Dlm dispatch was stopping too early
        ocfs2_dlm: Drop inflight refmap even if no locks found on the lockres
        ocfs2_dlm: Flush dlm workqueue before starting to migrate
        ocfs2_dlm: Fix migrate lockres handler queue scanning
        ocfs2_dlm: Make dlmunlock() wait for migration to complete
        ocfs2_dlm: Fixes race between migrate and dirty
        ...
      5986a2ec
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 · 43187902
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6:
        Revert "Driver core: convert SPI code to use struct device"
      43187902
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc · 21eb4fa1
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc: (116 commits)
        [POWERPC] Add export of vgacon_remap_base
        [POWERPC] Remove bogus comment about page_is_ram
        [POWERPC] windfarm: don't die on suspend thread signal
        [POWERPC] Fix comment in kernel/irq.c
        [POWERPC] ppc: Fix booke watchdog initialization
        [POWERPC] PPC: Use ARRAY_SIZE macro when appropriate
        [POWERPC] Use ARRAY_SIZE macro when appropriate
        [POWERPC] Fix ppc64's writing to struct file_operations
        [POWERPC] ppc: use syslog macro for the printk log level
        [POWERPC] ppc: cs4218_tdm remove extra brace
        [POWERPC] Add mpc52xx/lite5200 PCI support
        [POWERPC] Only use H_BULK_REMOVE if the firmware supports it
        [POWERPC] Fixup error handling when emulating a floating point instruction
        [POWERPC] Enable interrupts if we are doing fp math emulation
        [POWERPC] Added kprobes support to ppc32
        [POWERPC] Make pSeries use the H_BULK_REMOVE hypervisor call
        [POWERPC] Clear RI bit in MSR before restoring r13 when returning to userspace
        [POWERPC] Fix performance monitor exception
        [POWERPC] Compile fixes for arch/powerpc dcr code
        [POWERPC] Maple: use mmio nvram
        ...
      21eb4fa1
    • L
      Merge branch 'drm-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6 · 0c0e8caf
      Linus Torvalds 提交于
      * 'drm-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6:
        drm: Allow for 44 bit user-tokens (or drm_file offsets)
        drm/via: Disable AGP DMA for chips with the new 3D engine.
        drm: update core memory manager from git drm tree
        drm: remove drm_ioremap and drm_ioremapfree
        i810/i830: use drm_core_ioremap instead of drm_ioremap
        drm: use vmalloc_user instead of vmalloc_32 for DRM_SHM
        via: allow for npot texture pitch alignment
        via: add some new chipsets
        via: some PCI posting flushes
      0c0e8caf
    • L
      kbuild: fix space for good (take 103) · b892afd1
      Linus Torvalds 提交于
      Michal Ostrowski points out what the real problem was: the spaces at the
      start of the definition of the 'checker-shell' make function.
      
      Cc: Michal Ostrowski <mostrows@watson.ibm.com>
      Acked-by: NDavid Miller <davem@davemloft.net>
      Acked-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Acked-by: NOleg Verych <olecom@flower.upol.cz>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b892afd1
  2. 08 2月, 2007 29 次提交