1. 11 10月, 2007 34 次提交
    • Y
      [PATCH] dev->priv to netdev_priv(dev), for drivers/net/wireless · 6dbc9c89
      Yoann Padioleau 提交于
      Replacing accesses to dev->priv to netdev_priv(dev). The replacment
      is safe when netdev_priv is used to access a private structure that is
      right next to the net_device structure in memory. Cf
      http://groups.google.com/group/comp.os.linux.development.system/browse_thread/thread/de19321bcd94dbb8/0d74a4adcd6177bd
      This is the case when the net_device structure was allocated with
      a call to alloc_netdev or one of its derivative.
      Signed-off-by: NYoann Padioleau <padator@wanadoo.fr>
      Cc: mcgrof@gmail.com
      Cc: linux-wireless@vger.kernel.org
      Cc: akpm@linux-foundation.org
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6dbc9c89
    • M
    • M
      [PATCH] Use mutex instead of semaphore in the Host AP driver · 3623060a
      Matthias Kaehlcke 提交于
      The Host AP driver uses a semaphore as mutex. Use the mutex API
      instead of the (binary) semaphore.
      Signed-off-by: NMatthias Kaehlcke <matthias.kaehlcke@gmail.com>
      Acked-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3623060a
    • B
      [PATCH] remove gratuitous space in airo module description · d73ae55a
      Bill Nottingham 提交于
      Currently the modinfo looks like:
      
      description:    Support for Cisco/Aironet 802.11 wireless ethernet                    cards.  Direct support for ISA/PCI/MPI cards and support               for PCMCIA when used with airo_cs.
      
      Arguably, it should be cut at the end of the first sentence.
      This at least makes it somewhat more legible.
      Signed-off-by: NBill Nottingham <notting@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d73ae55a
    • F
      [PATCH] Kconfig: remove references of pcmcia-cs · cfbde697
      Faidon Liambotis 提交于
      pcmcia-cs/cardmgr is deprecated and mentioning it in the help text is
      misleading.
      Signed-off-by: NFaidon Liambotis <paravoid@debian.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      cfbde697
    • F
      [PATCH] Kconfig: order options · e12dcb05
      Faidon Liambotis 提交于
      Reorder the Atmel options so that the menu appears saner.
      Before:
        < >   Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)
        <*>   Atmel at76c50x chipset  802.11b support
        < >     Atmel at76c506 PCI cards (NEW)
        < > Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards
        < > Atmel at76c502/at76c504 PCMCIA cards (NEW)
      
      After:
        < >   Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)
        <*>   Atmel at76c50x chipset  802.11b support
        < >     Atmel at76c506 PCI cards (NEW)
        < >     Atmel at76c502/at76c504 PCMCIA cards (NEW)
        < >   Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards
      Signed-off-by: NFaidon Liambotis <paravoid@debian.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      e12dcb05
    • U
      [PATCH] zd1211rw: monitor all packets · c5691235
      Ulrich Kunitz 提交于
      While in monitor mode the zd1211rw received only a limited
      set of packets. This patch forwards now all packets the device
      receives. Notify that while monitoring no FCS checks are done; so
      strange packets might appear in the network sniffer of your
      choice.
      
      ATTENTION: Support for multiple interfaces on a single ZD1211
      device is currently broken. So this code works only on the first
      interface.
      
      Here is an example to put the device in monitor mode.
      
      iwconfig wlan0 mode monitor
      ifconfig wlan0 up
      iwconfig wlan0 channel 10
      
      [dsd@gentoo.org: backport to mainline]
      Signed-off-by: NUlrich Kunitz <kune@deine-taler.de>
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c5691235
    • M
      [PATCH] Add adm8211 802.11b wireless driver · cc0b88cf
      Michael Wu 提交于
      This patch adds a mac80211 wireless driver for ADMtek ADM8211 based
      wireless cards.
      Signed-off-by: NMichael Wu <flamingice@sourmilk.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      cc0b88cf
    • J
      [MAC80211]: rework hardware crypto flags · 7848ba7d
      Johannes Berg 提交于
      This patch reworks the various hardware crypto related
      flags to make them more local, i.e. put them with each
      key or each packet instead of into the hw struct.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Acked-by: NMichael Wu <flamingice@sourmilk.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7848ba7d
    • D
      [NETNS]: Fix loopback network namespace initialization. · abf07acb
      Daniel Lezcano 提交于
      The core patchset of the network namespace sent by
      Eric Biederman does not do dynamic loopback creation.
      So there is no call to alloc_netdev_mq which fills the
      network namespace field of the netdevice.
      
      This patch assign the loopback to the init network namespace.
      Signed-off-by: NDaniel Lezcano <dlezcano@fr.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      abf07acb
    • E
      [NET]: Implement network device movement between namespaces · ce286d32
      Eric W. Biederman 提交于
      This patch introduces NETIF_F_NETNS_LOCAL a flag to indicate
      a network device is local to a single network namespace and
      should never be moved.  Useful for pseudo devices that we
      need an instance in each network namespace (like the loopback
      device) and for any device we find that cannot handle multiple
      network namespaces so we may trap them in the initial network
      namespace.
      
      This patch introduces the function dev_change_net_namespace
      a function used to move a network device from one network
      namespace to another.  To the network device nothing
      special appears to happen, to the components of the network
      stack it appears as if the network device was unregistered
      in the network namespace it is in, and a new device
      was registered in the network namespace the device
      was moved to.
      
      This patch sets up a namespace device destructor that
      upon the exit of a network namespace moves all of the
      movable network devices  to the initial network namespace
      so they are not lost.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ce286d32
    • E
      [NET]: Make the device list and device lookups per namespace. · 881d966b
      Eric W. Biederman 提交于
      This patch makes most of the generic device layer network
      namespace safe.  This patch makes dev_base_head a
      network namespace variable, and then it picks up
      a few associated variables.  The functions:
      dev_getbyhwaddr
      dev_getfirsthwbytype
      dev_get_by_flags
      dev_get_by_name
      __dev_get_by_name
      dev_get_by_index
      __dev_get_by_index
      dev_ioctl
      dev_ethtool
      dev_load
      wireless_process_ioctl
      
      were modified to take a network namespace argument, and
      deal with it.
      
      vlan_ioctl_set and brioctl_set were modified so their
      hooks will receive a network namespace argument.
      
      So basically anthing in the core of the network stack that was
      affected to by the change of dev_base was modified to handle
      multiple network namespaces.  The rest of the network stack was
      simply modified to explicitly use &init_net the initial network
      namespace.  This can be fixed when those components of the network
      stack are modified to handle multiple network namespaces.
      
      For now the ifindex generator is left global.
      
      Fundametally ifindex numbers are per namespace, or else
      we will have corner case problems with migration when
      we get that far.
      
      At the same time there are assumptions in the network stack
      that the ifindex of a network device won't change.  Making
      the ifindex number global seems a good compromise until
      the network stack can cope with ifindex changes when
      you change namespaces, and the like.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      881d966b
    • E
      [NET]: Support multiple network namespaces with netlink · b4b51029
      Eric W. Biederman 提交于
      Each netlink socket will live in exactly one network namespace,
      this includes the controlling kernel sockets.
      
      This patch updates all of the existing netlink protocols
      to only support the initial network namespace.  Request
      by clients in other namespaces will get -ECONREFUSED.
      As they would if the kernel did not have the support for
      that netlink protocol compiled in.
      
      As each netlink protocol is updated to be multiple network
      namespace safe it can register multiple kernel sockets
      to acquire a presence in the rest of the network namespaces.
      
      The implementation in af_netlink is a simple filter implementation
      at hash table insertion and hash table look up time.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b4b51029
    • E
      [NET]: Make device event notification network namespace safe · e9dc8653
      Eric W. Biederman 提交于
      Every user of the network device notifiers is either a protocol
      stack or a pseudo device.  If a protocol stack that does not have
      support for multiple network namespaces receives an event for a
      device that is not in the initial network namespace it quite possibly
      can get confused and do the wrong thing.
      
      To avoid problems until all of the protocol stacks are converted
      this patch modifies all netdev event handlers to ignore events on
      devices that are not in the initial network namespace.
      
      As the rest of the code is made network namespace aware these
      checks can be removed.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e9dc8653
    • E
      [NET]: Make packet reception network namespace safe · e730c155
      Eric W. Biederman 提交于
      This patch modifies every packet receive function
      registered with dev_add_pack() to drop packets if they
      are not from the initial network namespace.
      
      This should ensure that the various network stacks do
      not receive packets in a anything but the initial network
      namespace until the code has been converted and is ready
      for them.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e730c155
    • E
      [NET]: Make socket creation namespace safe. · 1b8d7ae4
      Eric W. Biederman 提交于
      This patch passes in the namespace a new socket should be created in
      and has the socket code do the appropriate reference counting.  By
      virtue of this all socket create methods are touched.  In addition
      the socket create methods are modified so that they will fail if
      you attempt to create a socket in a non-default network namespace.
      
      Failing if we attempt to create a socket outside of the default
      network namespace ensures that as we incrementally make the network stack
      network namespace aware we will not export functionality that someone
      has not audited and made certain is network namespace safe.
      Allowing us to partially enable network namespaces before all of the
      exotic protocols are supported.
      
      Any protocol layers I have missed will fail to compile because I now
      pass an extra parameter into the socket creation code.
      
      [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b8d7ae4
    • E
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman 提交于
      This patch makes /proc/net per network namespace.  It modifies the global
      variables proc_net and proc_net_stat to be per network namespace.
      The proc_net file helpers are modified to take a network namespace argument,
      and all of their callers are fixed to pass &init_net for that argument.
      This ensures that all of the /proc/net files are only visible and
      usable in the initial network namespace until the code behind them
      has been updated to be handle multiple network namespaces.
      
      Making /proc/net per namespace is necessary as at least some files
      in /proc/net depend upon the set of network devices which is per
      network namespace, and even more files in /proc/net have contents
      that are relevant to a single network namespace.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457c4cbc
    • A
      [TG3]: remove sparse warnings · ab0049b4
      Andy Gospodarek 提交于
      Removed sparse warnings from tg3 driver.  The new logic seems fine (I
      don't immediately see where we are running over values for any of the
      variables that need to be saved).
      
      This patch compiles fine and I'm currently using a tg3 with the patched
      driver to post this patch as a basic proof of concept.
      Signed-off-by: NAndy Gospodarek <andy@greyhouse.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ab0049b4
    • J
    • A
      [IrDA]: Kingsun KS-959 IrDA USB driver · 4b6aa599
      Alex Villacís Lasso 提交于
      This dongle does not follow the usb-irda specification, so it needs its own
      special driver. First, it uses control URBs for data transfer, instead of
      bulk or interrupt transfers; the only interrupt endpoint exposed seems to
      be a dummy to prevent the interface from being rejected. Second, it uses
      obfuscation and padding at the USB traffic level, for no apparent reason
      other than to make reverse engineering harder (full details on obfuscation
      in comments at beginning of source). Although it is advertised as a "4 Mbps
      FIR dongle", it apparently loses packets at speeds greater than 57600 bps.
      
      On plugin, this dongle reports vendor and device IDs: 0x07d0:0x4959 .
      
      The Windows driver that is used normally to control this dongle has a
      filename of KS-959.SYS .
      Signed-off-by: NAlex Villacís Lasso <a_villacis@palosanto.com>
      Signed-off-by: NSamuel Ortiz <samuel@sortiz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4b6aa599
    • A
      [IrDA]: Kingsun Dazzle IrDA USB driver · 4a1d7c25
      Alex Villacís Lasso 提交于
      This dongle does not follow the usb-irda specification, so it needs its own
      special driver. Just like the Kingsun/Donshine dongle, it exposes two
      interrupt endpoints. Reception is performed through direct reads from the
      input endpoint. Transmission requires splitting the IrDA frames into 8-byte
      segments, in which the first byte encodes how many of the remaining 7 bytes
      are used as data. Speed change is made with a control URB just like the one
      in cypress_m8, and it seems to support up to 115200 bps.
      
      On plugin, this dongle reports vendor and device IDs: 0x07d0:0x4100
      Signed-off-by: NAlex Villacís Lasso <a_villacis@palosanto.com>
      Signed-off-by: NSamuel Ortiz <samuel@sortiz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a1d7c25
    • S
      [NET] netconsole: Support dynamic reconfiguration using configfs · 0bcc1816
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      This patch introduces support for dynamic reconfiguration (adding, removing
      and/or modifying parameters of netconsole targets at runtime) using a
      userspace interface exported via configfs.  Documentation is also updated
      accordingly.
      
      Issues and brief design overview:
      
      (1) Kernel-initiated creation / destruction of kernel objects is not
          possible with configfs -- the lifetimes of the "config items" is managed
          exclusively from userspace.  But netconsole must support boot/module
          params too, and these are parsed in kernel and hence netpolls must be
          setup from the kernel.  Joel Becker suggested to separately manage the
          lifetimes of the two kinds of netconsole_target objects -- those created
          via configfs mkdir(2) from userspace and those specified from the
          boot/module option string.  This adds complexity and some redundancy here
          and also means that boot/module param-created targets are not exposed
          through the configfs namespace (and hence cannot be updated / destroyed
          dynamically).  However, this saves us from locking / refcounting
          complexities that would need to be introduced in configfs to support
          kernel-initiated item creation / destroy there.
      
      (2) In configfs, item creation takes place in the call chain of the
          mkdir(2) syscall in the driver subsystem.  If we used an ioctl(2) to
          create / destroy objects from userspace, the special userspace program is
          able to fill out the structure to be passed into the ioctl and hence
          specify attributes such as local interface that are required at the time
          we set up the netpoll.  For configfs, this information is not available at
          the time of mkdir(2).  So, we keep all newly-created targets (via
          configfs) disabled by default.  The user is expected to set various
          attributes appropriately (including the local network interface if
          required) and then write(2) "1" to the "enabled" attribute.  Thus,
          netpoll_setup() is then called on the set parameters in the context of
          _this_ write(2) on the "enabled" attribute itself.  This design enables
          the user to reconfigure existing netconsole targets at runtime to be
          attached to newly-come-up interfaces that may not have existed when
          netconsole was loaded or when the targets were actually created.  All this
          effectively enables us to get rid of custom ioctls.
      
      (3) Ultra-paranoid configfs attribute show() and store() operations, with
          sanity and input range checking, using only safe string primitives, and
          compliant with the recommendations in Documentation/filesystems/sysfs.txt.
      
      (4) A new function netpoll_print_options() is created in the netpoll API,
          that just prints out the configured parameters for a netpoll structure.
          netpoll_parse_options() is modified to use that and it is also exported to
          be used from netconsole.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Acked-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0bcc1816
    • S
      [NET] netconsole: Support multiple logging targets · b5427c27
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      This patch introduces support for multiple targets, independent of
      CONFIG_NETCONSOLE_DYNAMIC -- this is useful even in the default case and
      (including the infrastructure introduced in previous patches) doesn't really
      add too many bytes to module text.  All the complexity (and size) comes with
      the dynamic reconfigurability / userspace interface patch, and so it's
      plausible users may want to keep this enabled but that disabled (say to avoid
      a dependency on CONFIG_CONFIGFS_FS too).
      
      Also update documentation to mention the use of ";" separator to specify
      multiple logging targets in the boot/module option string.
      
      Brief overview:
      
      We maintain a target_list (and corresponding lock).  Get rid of the static
      "default_target" and introduce allocation and release functions for our
      netconsole_target objects (but keeping sure to preserve previous behaviour
      such as default values).  During init_netconsole(), ";" is used as the
      separator to identify multiple target specifications in the boot/module option
      string.  The target specifications are parsed and netpolls setup.  During
      exit, the target_list is torn down and all items released.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b5427c27
    • S
      [NET] netconsole: Introduce netconsole_netdev_notifier · 17951f34
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      To update fields of underlying netpoll structure at runtime on corresponding
      NETDEV_CHANGEADDR or NETDEV_CHANGENAME notifications.
      
      ioctl(SIOCSIFHWADDR or SIOCSIFNAME) could be used to change the hardware/MAC
      address or name of the local interface that our netpoll is attached to.
      Whenever this happens, netdev notifier chain is called out with the
      NETDEV_CHANGEADDR or NETDEV_CHANGENAME event message.  We respond to that and
      update the local_mac or dev_name field of the struct netpoll.  This makes
      sense anyway, but is especially required for dynamic netconsole because the
      netpoll structure's internal members become user visible files when either
      sysfs or configfs are used.  So this helps us to keep up with the MAC
      address/name changes and keep values in struct netpoll uptodate.
      
      [ Note that ioctl(SIOCSIFADDR) to change IP address of interface at
        runtime is not handled (to update local_ip of netpoll) on purpose --
        some setups may set the local_ip to a private address, not necessary
        the actual IP address of the sender host, as presently allowed. ]
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      17951f34
    • S
      [NET] netconsole: Introduce netconsole_target · df180e36
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      Introduce a wrapper structure over netpoll to represent logging targets
      configured in netconsole.  This will get extended with other members in
      further patches.
      
      This is done independent of the (to-be-introduced) NETCONSOLE_DYNAMIC config
      option so that we're able to drastically cut down on the #ifdef complexity of
      final netconsole.c.  Also, struct netconsole_target would be required for
      multiple targets support also, and not just dynamic reconfigurability.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      df180e36
    • S
      [NET] netconsole: Use netif_running() in write_msg() · 0cc120be
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      Avoid unnecessarily disabling interrupts and calling netpoll_send_udp() if the
      corresponding local interface is not up.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Acked-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0cc120be
    • S
      [NET] netconsole: Simplify boot/module option setup logic · d2b60881
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      Presently, boot/module parameters are set up quite differently for the case of
      built-in netconsole (__setup() -> obsolete_checksetup() ->
      netpoll_parse_options() -> strlen(config) == 0 in init_netconsole()) vs
      modular netconsole (module_param_string() -> string copied to the config
      variable -> strlen(config) != 0 init_netconsole() -> netpoll_parse_options()).
      
      This patch makes both of them similar by doing exactly the equivalent of a
      module_param_string() in option_setup() also -- just copying the param string
      passed from the kernel command line into "config" variable.  So,
      strlen(config) != 0 in both cases, and netpoll_parse_options() is always
      called from init_netconsole(), thus making the setup logic for both cases
      similar.
      
      Now, option_setup() is only ever called / used for the built-in case, so we
      put it inside a #ifndef MODULE, otherwise gcc will complain about
      option_setup() being "defined but not used".  Also, the "configured" variable
      is redundant with this patch and hence removed.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Acked-by: NMatt Mackall <mpm@selenic.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d2b60881
    • S
      [NET] netconsole: Remove bogus check · d133ccbd
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      The (!np.dev) check in write_msg() is bogus (always false), because: np.dev is
      set by netpoll_setup(), which is called by init_netconsole() before
      register_console(), so write_msg() cannot be triggered unless netpoll_setup()
      successfully set np.dev.  Also np.dev cannot go away from under us, because
      netpoll_setup() grabs us reference on it.  So let's remove the bogus check.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Acked-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Acked-by: NMatt Mackall <mpm@selenic.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d133ccbd
    • S
      [NET] netconsole: Cleanups, codingstyle, prettyfication · d39badf0
      Satyam Sharma 提交于
      Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.
      
      (1) Remove unwanted headers.
      (2) Mark __init and __exit as appropriate.
      (3) Various trivial codingstyle and prettification stuff.
      Signed-off-by: NSatyam Sharma <satyam@infradead.org>
      Signed-off-by: NKeiichi Kii <k-keiichi@bx.jp.nec.com>
      Acked-by: NMatt Mackall <mpm@selenic.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d39badf0
    • A
      [MYRI10GE]: Use LRO. · 1e6e9342
      Andrew Gallatin 提交于
      Singed off by: Andrew Gallatin <gallatin@myri.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e6e9342
    • J
      [EHEA]: Use LRO. · d4dc4ec9
      Jan-Bernd Themann 提交于
      Signed-off-by: NJan-Bernd Themann <themann@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d4dc4ec9
    • P
      [NET]: Virtual ethernet device driver. · e314dbdc
      Pavel Emelyanov 提交于
      Veth stands for Virtual ETHernet. It is a simple tunnel driver
      that works at the link layer and looks like a pair of ethernet
      devices interconnected with each other.
      
      Mainly it allows to communicate between network namespaces but
      it can be used as is as well.
      
      The newlink callback is organized that way to make it easy to
      create the peer device in the separate namespace when we have
      them in kernel.
      
      This implementation uses another interface - the RTM_NRELINK
      message introduced by Patric.
      
      Bug fixes from Daniel Lezcano.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Acked-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e314dbdc
    • S
      [NET]: Make NAPI polling independent of struct net_device objects. · bea3348e
      Stephen Hemminger 提交于
      Several devices have multiple independant RX queues per net
      device, and some have a single interrupt doorbell for several
      queues.
      
      In either case, it's easier to support layouts like that if the
      structure representing the poll is independant from the net
      device itself.
      
      The signature of the ->poll() call back goes from:
      
      	int foo_poll(struct net_device *dev, int *budget)
      
      to
      
      	int foo_poll(struct napi_struct *napi, int budget)
      
      The caller is returned the number of RX packets processed (or
      the number of "NAPI credits" consumed if you want to get
      abstract).  The callee no longer messes around bumping
      dev->quota, *budget, etc. because that is all handled in the
      caller upon return.
      
      The napi_struct is to be embedded in the device driver private data
      structures.
      
      Furthermore, it is the driver's responsibility to disable all NAPI
      instances in it's ->stop() device close handler.  Since the
      napi_struct is privatized into the driver's private data structures,
      only the driver knows how to get at all of the napi_struct instances
      it may have per-device.
      
      With lots of help and suggestions from Rusty Russell, Roland Dreier,
      Michael Chan, Jeff Garzik, and Jamal Hadi Salim.
      
      Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
      Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.
      
      [ Ported to current tree and all drivers converted.  Integrated
        Stephen's follow-on kerneldoc additions, and restored poll_list
        handling to the old style to fix mutual exclusion issues.  -DaveM ]
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bea3348e
    • D
      [MAC80211]: improved short preamble handling · 7e9ed188
      Daniel Drake 提交于
      Similarly to CTS protection, whether short preambles are used for 802.11b
      transmissions should be a per-subif setting, not device global.
      
      For STAs, this patch makes short preamble handling automatic based on the ERP
      IE. For APs, hostapd still uses the prism ioctls, but the write ioctl has been
      restricted to AP-only subifs.
      
      ieee80211_txrx_data.short_preamble (an unused field) was removed.
      
      Unfortunately, some API changes were required for the following functions:
       - ieee80211_generic_frame_duration
       - ieee80211_rts_duration
       - ieee80211_ctstoself_duration
       - ieee80211_rts_get
       - ieee80211_ctstoself_get
      Affected drivers were updated accordingly.
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Signed-off-by: NJiri Benc <jbenc@suse.cz>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7e9ed188
  2. 10 10月, 2007 1 次提交
  3. 09 10月, 2007 2 次提交
  4. 08 10月, 2007 3 次提交