1. 12 7月, 2005 2 次提交
  2. 14 6月, 2005 2 次提交
    • J
      [IPV4]: Sysctl configurable icmp error source address. · 1c2fb7f9
      J. Simonetti 提交于
      This patch alows you to change the source address of icmp error
      messages. It applies cleanly to 2.6.11.11 and retains the default
      behaviour.
      
      In the old (default) behaviour icmp error messages are sent with the ip
      of the exiting interface.
      
      The new behaviour (when the sysctl variable is toggled on), it will send
      the message with the ip of the interface that received the packet that
      caused the icmp error. This is the behaviour network administrators will
      expect from a router. It makes debugging complicated network layouts
      much easier. Also, all 'vendor routers' I know of have the later
      behaviour.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1c2fb7f9
    • T
      [NET]: linux/if_tr.h needs asm/byteorder.h · 03722adc
      Tom Rini 提交于
      <linux/if_tr.h> uses __be16, but does not directly include
      <asm/byteorder.h>.  Add this in, so that dhcp/net-tools token ring code
      can compile again.
      Signed-off-by: NTom Rini <trini@kernel.crashing.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      03722adc
  3. 13 6月, 2005 1 次提交
  4. 09 6月, 2005 2 次提交
  5. 08 6月, 2005 1 次提交
  6. 07 6月, 2005 1 次提交
  7. 03 6月, 2005 4 次提交
    • R
      [PATCH] USB: update urb documentation · 719df469
      Roman Kagan 提交于
      On Wed, May 04, 2005 at 01:37:30PM -0700, David Brownell wrote:
      > On Wednesday 04 May 2005 12:19 pm, Roman Kagan wrote:
      > > struct urb {
      > > 	/* private, usb core and host controller only fields in the urb */
      > > 	...
      > > 	struct list_head urb_list;	/* list pointer to all active urbs */
      > > 	...
      > > };
      > >
      > > Is it safe to use it for driver's purposes when the driver owns the urb,
      > > that is, starting from the completion routine until the urb is submitted
      > > with usb_submit_urb()?
      >
      > Right now, it should be.
      
      Great!  FWIW I've briefly tested a modified version of usbatm using
      the list head in struct urb instead of creating a wrapper struct, and I
      haven't seen any failures yet.  So I tend to believe that your "should
      be" actually means "is" :)
      
      > > If it is, can it be guaranteed in future, e.g.
      > > by moving the list head into the public section of struct urb?
      >
      > In fact I'm not sure why it ever got called "private" to usbcore/hcds.
      > I thought the idea was that it should be like urb->status, reserved for
      > whoever controls the URB.
      
      OK then how about the following (essentially documentation) patch?
      Signed-off-by: NRoman Kagan <rkagan@mail.ru>
      Acked-by: NDavid Brownell <david-b@pacbell.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      719df469
    • J
      [NET]: Fix HH_DATA_OFF. · 5ba0eac6
      Jiri Benc 提交于
      When the hardware header size is a multiple of HH_DATA_MOD, HH_DATA_OFF()
      incorrectly returns HH_DATA_MOD (instead of 0). This affects ieee80211 layer
      as 802.11 header is 32 bytes long.
      Signed-off-by: NJiri Benc <jbenc@suse.cz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ba0eac6
    • C
      [NET]: Fix locking in shaper driver. · b597ef47
      Christoph Hellwig 提交于
       o use a semaphore instead of an opencoded and racy lock
       o move locking out of shaper_kick and into the callers - most just
         released the lock before calling shaper_kick
       o remove in_interrupt() tests.  from ->close we can always block, from
         ->hard_start_xmit and timer context never
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b597ef47
    • E
      libata: update inline source docs · 0baab86b
      Edward Falk 提交于
      0baab86b
  8. 01 6月, 2005 2 次提交
  9. 30 5月, 2005 5 次提交
  10. 29 5月, 2005 1 次提交
  11. 28 5月, 2005 1 次提交
    • A
      Input: · 668d1e60
      Adrian Bunk 提交于
      This patch adds dummy gameport_register_port, gameport_unregister_port
      and gameport_set_phys functions to gameport.h for the case when a driver
      can't use gameport.
      
      This fixes the compilation of some OSS drivers with GAMEPORT=n without
      the need to #if inside every single driver.
      
      This patch also removes the non-working and now obsolete SOUND_GAMEPORT.
      
      This patch is also an alternative solution for ALSA drivers with similar
      problems (but #if's inside the drivers might have the advantage of
      saving some more bytes of gameport is not available).
      
      The only user-visible change is that for GAMEPORT=m the affected OSS
      drivers are now allowed to be built statically (but they won't have
      gameport support).
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NVojtech Pavlik <vojtech@suse.cz>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      668d1e60
  12. 27 5月, 2005 5 次提交
  13. 26 5月, 2005 1 次提交
    • B
      [PATCH] convert IDE device drivers to driver-model · 8604affd
      Bartlomiej Zolnierkiewicz 提交于
      * add ide_bus_match() and export ide_bus_type
      * split ide_remove_driver_from_hwgroup() out of ide_unregister()
      * move device cleanup from ide_unregister() to drive_release_dev()
      * convert ide_driver_t->name to driver->name
      * convert ide_driver_t->{attach,cleanup} to driver->{probe,remove}
      * remove ide_driver_t->busy as ide_bus_type->subsys.rwsem
        protects against concurrent ->{probe,remove} calls
      * make ide_{un}register_driver() void as it cannot fail now
      * use driver_{un}register() directly, remove ide_{un}register_driver()
      * use device_register() instead of ata_attach(), remove ata_attach()
      * add proc_print_driver() and ide_drivers_show(), remove ide_drivers_op
      * fix ide_replace_subdriver() and move it to ide-proc.c
      * remove ide_driver_t->drives, ide_drives and drives_lock
      * remove ide_driver_t->drivers, drivers and drivers_lock
      * remove ide_drive_t->driver and DRIVER() macro
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
      8604affd
  14. 25 5月, 2005 1 次提交
  15. 24 5月, 2005 4 次提交
  16. 22 5月, 2005 1 次提交
    • S
      [PATCH] spin_unlock_bh() and preempt_check_resched() · 10f02d1c
      Samuel Thibault 提交于
      In _spin_unlock_bh(lock):
      	do { \
      		_raw_spin_unlock(lock); \
      		preempt_enable(); \
      		local_bh_enable(); \
      		__release(lock); \
      	} while (0)
      
      there is no reason for using preempt_enable() instead of a simple
      preempt_enable_no_resched()
      
      Since we know bottom halves are disabled, preempt_schedule() will always
      return at once (preempt_count!=0), and hence preempt_check_resched() is
      useless here...
      
      This fixes it by using "preempt_enable_no_resched()" instead of the
      "preempt_enable()", and thus avoids the useless preempt_check_resched()
      just before re-enabling bottom halves.
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      10f02d1c
  17. 21 5月, 2005 2 次提交
  18. 20 5月, 2005 1 次提交
    • L
      Fix get_unmapped_area sanity tests · 07ab67c8
      Linus Torvalds 提交于
      As noted by Chris Wright, we need to do the full range of tests regardless
      of whether MAP_FIXED is set or not, so re-organize get_unmapped_area()
      slightly to do the sanity checks unconditionally.
      07ab67c8
  19. 18 5月, 2005 1 次提交
    • D
      [PATCH] Driver Core: remove driver model detach_state · 0b405a0f
      David Brownell 提交于
      The driver model has a "detach_state" mechanism that:
      
       - Has never been used by any in-kernel drive;
       - Is superfluous, since driver remove() methods can do the same thing;
       - Became buggy when the suspend() parameter changed semantics and type;
       - Could self-deadlock when called from certain suspend contexts;
       - Is effectively wasted documentation, object code, and headspace.
      
      This removes that "detach_state" mechanism; net code shrink, as well
      as a per-device saving in the driver model and sysfs.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0b405a0f
  20. 16 5月, 2005 1 次提交
    • B
      [PATCH] libata: flush COMRESET set and clear · cdcca89e
      Brett Russ 提交于
      Updated patch to fix erroneous flush of COMRESET set and missing flush
      of COMRESET clear.  Created a new routine scr_write_flush() to try to
      prevent this in the future.  Also, this patch is based on libata-2.6
      instead of the previous libata-dev-2.6 based patch.
      Signed-off-by: NBrett Russ <russb@emc.com>
      
      Index: libata-2.6/drivers/scsi/libata-core.c
      ===================================================================
      cdcca89e
  21. 10 5月, 2005 1 次提交