1. 07 1月, 2010 20 次提交
  2. 04 1月, 2010 3 次提交
    • K
      axnet_cs: remove unnecessary spin_unlock_irqrestore · ceba0b29
      Ken Kawasaki 提交于
      axnet_cs:
          remove unnecessary spin_unlock_irqrestore,spin_lock_irqsave.
      Signed-off-by: NKen Kawasaki <ken_kawasaki@spring.nifty.jp>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ceba0b29
    • J
      drivers/net/cxgb3: Use kzalloc for allocating only one thing · 75ed0a89
      Julia Lawall 提交于
      Use kzalloc rather than kcalloc(1,...)
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      @@
      
      - kcalloc(1,
      + kzalloc(
                ...)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Acked-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      75ed0a89
    • A
      bonding: allow arp_ip_targets on separate vlans to use arp validation · 1f3c8804
      Andy Gospodarek 提交于
      This allows a bond device to specify an arp_ip_target as a host that is
      not on the same vlan as the base bond device and still use arp
      validation.  A configuration like this, now works:
      
      BONDING_OPTS="mode=active-backup arp_interval=1000 arp_ip_target=10.0.100.1 arp_validate=3"
      
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
          inet6 ::1/128 scope host
             valid_lft forever preferred_lft forever
      2: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
      3: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
      8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
          inet6 fe80::213:21ff:febe:33e9/64 scope link
             valid_lft forever preferred_lft forever
      9: bond0.100@bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
          inet 10.0.100.2/24 brd 10.0.100.255 scope global bond0.100
          inet6 fe80::213:21ff:febe:33e9/64 scope link
             valid_lft forever preferred_lft forever
      
      Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
      
      Bonding Mode: fault-tolerance (active-backup)
      Primary Slave: None
      Currently Active Slave: eth1
      MII Status: up
      MII Polling Interval (ms): 0
      Up Delay (ms): 0
      Down Delay (ms): 0
      ARP Polling Interval (ms): 1000
      ARP IP target/s (n.n.n.n form): 10.0.100.1
      
      Slave Interface: eth1
      MII Status: up
      Link Failure Count: 1
      Permanent HW addr: 00:40:05:30:ff:30
      
      Slave Interface: eth0
      MII Status: up
      Link Failure Count: 0
      Permanent HW addr: 00:13:21:be:33:e9
      Signed-off-by: NAndy Gospodarek <andy@greyhouse.net>
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f3c8804
  3. 30 12月, 2009 13 次提交
  4. 29 12月, 2009 4 次提交
    • J
      mac80211: remove struct ieee80211_if_init_conf · 1ed32e4f
      Johannes Berg 提交于
      All its members (vif, mac_addr, type) are now available
      in the vif struct directly, so we can pass that instead
      of the conf struct. I generated this patch (except the
      mac80211 and header file changes) with this semantic
      patch:
      
      @@
      identifier conf, fn, hw;
      type tp;
      @@
      tp fn(struct ieee80211_hw *hw,
      -struct ieee80211_if_init_conf *conf)
      +struct ieee80211_vif *vif)
      {
      <...
      (
      -conf->type
      +vif->type
      |
      -conf->mac_addr
      +vif->addr
      |
      -conf->vif
      +vif
      )
      ...>
      }
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1ed32e4f
    • J
      mac80211: introduce flush operation · a80f7c0b
      Johannes Berg 提交于
      We've long lacked a good confirmation that frames
      have really gone out, e.g. before going off-channel
      for a scan. Add a flush() operation that drivers
      can implement to provide that confirmation, and use
      it in a few places:
       * before scanning sends the nullfunc frames
       * after scanning sends the nullfunc frames, if any
       * when going idle, to send any pending frames
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a80f7c0b
    • J
      rtl8187: remove priv->mode · d30506e0
      John W. Linville 提交于
      It is checked in add_interface, but there it is easily replaced with
      a check of priv->vif.  If that information should become necessary,
      it is available in vif->type anyway.
      
      It is also checked in led_turn_on and led_turn_off, where I made the
      substitutions as described above.  Of course, these checks seem to
      have been incorrect since the driver was using NL80211_IFTYPE_MONITOR
      to indicate no interface rather than NL80211_IFTYPE_UNSPECIFIED.
      Anyway, I think these checks may be extraneous...?
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d30506e0
    • J
      rtl8180: remove priv->mode · 643aab67
      John W. Linville 提交于
      It is only checked in add_interface, and there it is easily replaced
      with a check of priv->vif.  If that information should become necessary,
      it is available in vif->type anyway.
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      643aab67