1. 04 1月, 2010 5 次提交
    • A
      tipc: use kconfig to limit numeric ranges · ee983ac7
      Amerigo Wang 提交于
      We can rely on kconfig to limit these numbers,
      no need to limit them at compile time/run time.
      
      Users who modify these numbers manually should
      be responsible for themself. :)
      Signed-off-by: NWANG Cong <amwang@redhat.com>
      Cc: Per Liden <per.liden@ericsson.com>
      Cc: Jon Maloy <jon.maloy@ericsson.com>
      Cc: Allan Stephens <allan.stephens@windriver.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ee983ac7
    • M
      can/netlink: add CAN_CTRLMODE_ONE_SHOT · c1c5523d
      Marc Kleine-Budde 提交于
      This patch adds the flag CAN_CTRLMODE_ONE_SHOT. It is used as mask
      or flag in the "struct can_ctrlmode".
      
      It allows userspace via netlink to set a CAN controller into the special
      "one-shot" mode. In this mode, if supported by the CAN controller, it
      tries only once to deliver a CAN frame and aborts it if an error
      (e.g.: arbitration lost) happens.
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      Acked-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1c5523d
    • O
      can: Speed up CAN frame receiption by using ml_priv · 20dd3850
      Oliver Hartkopp 提交于
      this patch removes the hlist that contains the CAN receiver filter lists.
      It uses the 'midlayer private' pointer ml_priv and links the filters directly
      to the CAN netdevice, which allows to omit the walk through the complete CAN
      devices hlist for each received CAN frame.
      
      This patch is tested and does not remove any locking.
      Signed-off-by: NOliver Hartkopp <oliver@hartkopp.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20dd3850
    • 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
  2. 31 12月, 2009 2 次提交
  3. 30 12月, 2009 13 次提交
  4. 29 12月, 2009 20 次提交