1. 17 9月, 2006 3 次提交
    • F
      [PATCH] s390: qeth driver fixes [4/6] · 09d2d38a
      Frank Pavlic 提交于
      [PATCH 7/9] s390: qeth driver fixes [4/6]
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- fix kernel crash due to race,
      	  set card->state to SOFTSETUP after
      	  card and card->dev are initialized properly.
      	- remove CONFIG_QETH_PERF_STATS, use sysfs attribute instead,
      	  as we want to have the ability to turn on/off the
      	  statistics at runtime.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      09d2d38a
    • F
      [PATCH] s390: qeth driver fixes [3/6] · f7b65d70
      Frank Pavlic 提交于
      [PATCH 6/9] s390: qeth driver fixes [3/6]
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
             	fixed kernel panic caused by qeth driver:
              Using a bonding device qeth driver will realloc
              headroom for every skb coming from the bond device.
              Once this happens qeth frees the original skb and
              set the skb pointer to the new realloced skb.
              Under heavy transmit workload (e.g.UDP streams) through bond
              network device the qdio output queue might get full.
              In this case we return with EBUSY from qeth_send_packet.
              Returning to qeth_hard_start_xmit routine
              the skb address on the stack still points to the old address,
              which has been freed before.
              Returning from qeth_hard_start_xmit with EBUSY results in
              requeuing the skb. In this case it corrupts the qdisc queue
              and results in kernel panic.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      f7b65d70
    • F
      [PATCH] s390: qeth driver fixes [1/6] · 330b6369
      Frank Pavlic 提交于
      [PATCH 4/9] s390: qeth driver fixes [1/6]
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- Drop incoming packets with vlan_tag set
                if card->vlangrp is not set.
              - use always vlan_hwaccel_rx to pass
      	  vlan frames to the stack.
              - fix recovery problem. Device was recovered
      	  properly but still not working.
      	  netif_carrier_on call right before
                recovery start fixes it.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      330b6369
  2. 20 8月, 2006 1 次提交
  3. 18 7月, 2006 1 次提交
  4. 12 7月, 2006 1 次提交
  5. 11 7月, 2006 1 次提交
  6. 09 7月, 2006 1 次提交
  7. 04 7月, 2006 1 次提交
  8. 01 7月, 2006 1 次提交
  9. 23 6月, 2006 1 次提交
    • H
      [NET]: Merge TSO/UFO fields in sk_buff · 7967168c
      Herbert Xu 提交于
      Having separate fields in sk_buff for TSO/UFO (tso_size/ufo_size) is not
      going to scale if we add any more segmentation methods (e.g., DCCP).  So
      let's merge them.
      
      They were used to tell the protocol of a packet.  This function has been
      subsumed by the new gso_type field.  This is essentially a set of netdev
      feature bits (shifted by 16 bits) that are required to process a specific
      skb.  As such it's easy to tell whether a given device can process a GSO
      skb: you just have to and the gso_type field and the netdev's features
      field.
      
      I've made gso_type a conjunction.  The idea is that you have a base type
      (e.g., SKB_GSO_TCPV4) that can be modified further to support new features.
      For example, if we add a hardware TSO type that supports ECN, they would
      declare NETIF_F_TSO | NETIF_F_TSO_ECN.  All TSO packets with CWR set would
      have a gso_type of SKB_GSO_TCPV4 | SKB_GSO_TCPV4_ECN while all other TSO
      packets would be SKB_GSO_TCPV4.  This means that only the CWR packets need
      to be emulated in software.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7967168c
  10. 27 5月, 2006 3 次提交
    • J
      [netdrvr s/390] trim trailing whitespace · e82b0f2c
      Jeff Garzik 提交于
      Previous fix patches added a bunch of trailing whitespace,
      which git-applymbox complained loudly about.
      e82b0f2c
    • U
      [PATCH] s390: qeth driver fixes · ba1aa084
      Ursula Braun 提交于
      From: Frank Blaschka <Frank.Blaschka@de.ibm.com>
      From: Frank Pavlic <fpavlic@de.ibm.com>
      
              - fix fake_ll during initial device bringup. fake_ll was
      	  not active after first start of the device.
      	  Problem only occured when qeth was built without IPV6 support.
              - avoid skb usage after invocation of qeth_flush_buffers,
      	  because skb might already be freed.
              - remove yet another useless netif_wake_queue in
      	  qeth_softsetup_ipv6 since this function is only called
      	  when device is going online. In this case card->state will
      	  never be in state UP. So let the net_device queue down .
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      ba1aa084
    • U
      [PATCH] s390: qeth driver fixes · b85e1fa1
      Ursula Braun 提交于
      From: Frank Pavlic <fpavlic@de.ibm.com>
      
      	- correct checking of sscanf-%n value in qeth_string_to_ipaddr().
      	- don't use netif_stop_queue outside the hard_start_xmit routine.
      	  Rather use netif_tx_disable.
      	- don't call qeth_netdev_init on a recovery.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b85e1fa1
  11. 02 5月, 2006 1 次提交
  12. 24 3月, 2006 1 次提交
  13. 23 3月, 2006 3 次提交
    • F
      [PATCH] s390: qeth :allow setting of attribute "route6" to "no_router". · def720e6
      Frank Pavlic 提交于
      [patch 4/6] s390: qeth :allow setting of attribute "route6" to "no_router".
      
      From: Ursula Braun <braunu@de.ibm.com>
      	when setting route6 attribute back to no_router qeth does not
      	issue an IP ASSIST command to reset router value to no_router.
      	Once primary_router is set device stays in this mode.
      	Issue an IP ASSIST command when no_router is set in route6.
      	Device will be reset and thus will not longer run as a primary
      	router.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |    5 -----
       1 files changed, 5 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      def720e6
    • F
      [PATCH] s390: qeth driver cleanups · 1380fee2
      Frank Pavlic 提交于
      [patch 3/6] s390: qeth driver cleanups
      
      From: Ursula Braun <braunu@de.ibm.com>
      	- code analyzing tool BEAM has found some unreachable
      	  and unnecessary statements and also conditions
      	  which are always true.
      	- removed some useless MII code since OSA card will never
      	  allow to set such values.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |   49 ++++---------------------------------------------
       qeth_proc.c |   18 +++++++++---------
       qeth_sys.c  |    2 +-
       3 files changed, 14 insertions(+), 55 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      1380fee2
    • F
      [PATCH] s390: qeth driver statistics fixes · 95f6b5a1
      Frank Pavlic 提交于
      [patch 2/6] s390: qeth driver statistics fixes
      
      From: Ursula Braun <braunu@de.ibm.com>
      	- display "unsigned int" values in /proc/qeth_perf with %u instead of %i
      	- omit qdio header length when increasing card->stats.tx_bytes
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
      qeth_main.c |    3 ++-
       qeth_proc.c |   38 +++++++++++++++++++-------------------
       2 files changed, 21 insertions(+), 20 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      95f6b5a1
  14. 18 2月, 2006 1 次提交
    • F
      [PATCH] s390: some qeth driver fixes · 66cc5d5a
      Frank Pavlic 提交于
      [patch 2/2] s390: some qeth driver fixes
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- fixed kernel panic when using EDDP support in Layer 2 mode
      	- NULL pointer exception in qeth_set_offline fixed.
      	- setting EDDP in Layer 2 mode did not set NETIF_F_(SG/TSO)
      	  flags when device became online.
      	- use sscanf for parsing and converting IPv4 addresses
      	  from string to __u8 values.
      	- qeth_string_to_ipaddr6 fixed. in case of double colon
      	  the converted IPv6 address out from the string was not correct
      	  in previous implementation.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |  112 +++++++++++++++++++++++++-----------------------------------
       qeth_eddp.c |   11 ++++-
       qeth_main.c |   17 +++------
       3 files changed, 63 insertions(+), 77 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      66cc5d5a
  15. 02 2月, 2006 1 次提交
  16. 07 1月, 2006 2 次提交
  17. 24 12月, 2005 3 次提交
    • F
      [PATCH] s390: remove redundant and useless code in qeth · 3df3cc6d
      Frank Pavlic 提交于
      [patch 3/3] s390: remove redundant and useless code in qeth
      
      From: Frank Pavlic <pavlic@de.ibm.com>
      	- remove redundant and useless code in qeth for
      	  procfs operations.
      	- update Revision numbers
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |    6 -
       qeth_mpc.c  |    2
       qeth_mpc.h  |    2
       qeth_proc.c |  250 ++++++------------------------------------------------------
       qeth_sys.c  |    4
       qeth_tso.h  |    4
       6 files changed, 38 insertions(+), 230 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      3df3cc6d
    • F
      [PATCH] s390: minor qeth network driver fixes · 4965e97f
      Frank Pavlic 提交于
      [patch 2/3] s390: minor qeth network driver fixes
      
      From: Frank Pavlic <pavlic@de.ibm.com>
      	- use netif_carrier_on/off calls to tell network stack
      	  link carrier state
      	- fix possible kfree on NULL
      	- PDU_LEN2 is at offset 0x29 otherwise OSN chpid won't initialize
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
       qeth_eddp.c |    3 ++-
       qeth_main.c |   17 +++++++----------
       qeth_mpc.h  |    2 +-
       3 files changed, 10 insertions(+), 12 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      4965e97f
    • F
      [PATCH] s390: some minor qeth driver fixes · 6c6b3e7c
      Frank Pavlic 提交于
      [patch 1/3] s390: some minor qeth driver fixes
      
      From: Frank Pavlic <pavlic@de.ibm.com>
      	- let's have just one function for both ,input and output queue
      	  to check qdio errors
      	- add /proc/s390dbf/qeth_qerr entries for outbound processing
      	- check removed for layer2 device in qeth_add_multicast_ipv6
      	- NULL pointer dereference with bonding and VLAN device fixed
      	- minimum length check for portname fixed
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
      qeth_main.c |   42 +++++++++++++++++++++---------------------
      qeth_sys.c  |    6 +++---
      2 files changed, 24 insertions(+), 24 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      6c6b3e7c
  18. 11 11月, 2005 6 次提交
    • F
      [PATCH] s390: mail address changed · 1387780f
      Frank Pavlic 提交于
      [patch 7/7] s390: mail address changed
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- mail address changed to fpavlic@de.ibm.com
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       lcs.c       |    4 ++--
       qeth_main.c |    4 ++--
       qeth_mpc.c  |    2 +-
       qeth_mpc.h  |    2 +-
       qeth_sys.c  |    2 +-
       qeth_tso.h  |    2 +-
       6 files changed, 8 insertions(+), 8 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      1387780f
    • F
      [PATCH] s390: introduce guestLan sniffer support in qeth · 6c951b90
      Frank Pavlic 提交于
      [patch 6/7] s390: introduce guestLan sniffer support in qeth
      
      From: Peter Tiedemann  <ptiedem@de.ibm.com>
      	- introduce guestLan sniffer support in qeth
      	  feature allows a linux in a virtual machine
      	  guest to become a network LAN sniffer,
      	  monitoring and recording the networking traffic
      	  within an entire guestLan.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |    2 +
       qeth_main.c |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
       qeth_mpc.h  |   11 ++++---
       3 files changed, 102 insertions(+), 4 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      6c951b90
    • F
      [PATCH] s390: fix recovery failure of non-guestLAN devices · e08d88cc
      Frank Pavlic 提交于
      [patch 5/7] s390: fix recovery failure of non-guestLAN devices
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- Recovery of non-guestLAN Layer 2 device failed due to
      	  trying to register the real MAC address we got from
      	  the READ_MAC adapter parameters command.
      	  We have to keep the "old" MAC address when we process
      	  the reply of a READ_MAC.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |   12 ++++++------
       qeth_main.c |   27 ++++++++++++++++-----------
       2 files changed, 22 insertions(+), 17 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      e08d88cc
    • F
      [PATCH] s390: some more qeth fixes · d805d7c6
      Frank Pavlic 提交于
      [patch 4/7] s390: some more qeth fixes
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      From: Peter Tiedemann <ptiedem@de.ibm.com>
      	- possible race on list fixed by reset
      	  list processing after every operation
      	- traffic hang fixed
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |   11 +++++++----
       1 files changed, 7 insertions(+), 4 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      d805d7c6
    • F
      [PATCH] s390: qeth multicast address registration fixed · 6c88ad2d
      Frank Pavlic 提交于
      [patch 3/7] s390: qeth multicast address registration fixed
      
      From: Klaus Dieter Wacker <kdwacker@de.ibm.com>
      	- when running in Layer2 mode we don't have to register
      	  the multicast IP address but only group mac address.
      	  Therefore for Layer 2 devices it is enough to go
      	  through dev->mc_list list and register these entries.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |  106 +++++++++++++++++++++++++++++++++++++++++++++---------------
       1 files changed, 80 insertions(+), 26 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      6c88ad2d
    • F
      [PATCH] s390: minor modification in qeth layer2 code · 508cc2b0
      Frank Pavlic 提交于
      [patch 2/7] s390: minor modification in qeth layer2 code
      
      From: Frank Pavlic <fpavlic@de.ibm.com>
      	- use qeth_layer2_send_setdelvlan_cb to check
      	  return code of a SET/DELVLAN IP Assist command.
      	  It fits better in qeth's design and mechanism of IP Assist
      	  command handling.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      
      diffstat:
       qeth_main.c |   40 ++++++++++++++++++++++++++--------------
       1 files changed, 26 insertions(+), 14 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      508cc2b0
  19. 04 10月, 2005 3 次提交
    • U
      [PATCH] s390: introducing support in qeth for new OSA CHPID type OSN · 500f83ab
      Ursula Braun 提交于
      	This patch introduces new feature in qeth:
      	qeth enhancement provides the device driver support for
              the Communication Controller for Linux on System z9 and zSeries
              (CCL), which is software that enables running the Network Control
              Program (NCP) on a zSeries machine. The OSA CDLC support is based
              on a new IBM mainframe CHPID type called Open Systems Adaper for
              NCP (OSN). In case of OSN qeth communicates with the type-OSN
              OSA-card on one hand, and with the CCL-kernel-component Network
              Device Handler (NDH) on the other.
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      500f83ab
    • U
      [PATCH] s390: qeth driver fixes · 9123e0d7
      Ursula Braun 提交于
      From: Peter Tiedemann <ptiedem@de.ibm.com>
      From: Frank Pavlic <pavlic@de.ibm.com>
      	minor qeth fixes:
      	- free old skb in qeth_realloc_headroom after duplicating skb
      	- disable IPV6 support for Hipersockets devices
      	- call ccw_device_set_offline on every channel regardless
      	  of the return value of the prior ccw_device_set_offline calls
      	- allocate qdio structures in DMA-area
      	- schedule recovery of appropriate card
      	  when cable has been inserted again.
      	- add missing initialization of card->lock
      	- write sequence number in skb->cb for SNA protocol which
      	  requires strictly serialized packets.
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |    2 ++
       qeth_main.c |   37 +++++++++++++++++--------------------
       2 files changed, 19 insertions(+), 20 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      9123e0d7
    • H
      [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl · e5ed6399
      Herbert Xu 提交于
      The following patch renames __in_dev_get() to __in_dev_get_rtnl() and
      introduces __in_dev_get_rcu() to cover the second case.
      
      1) RCU with refcnt should use in_dev_get().
      2) RCU without refcnt should use __in_dev_get_rcu().
      3) All others must hold RTNL and use __in_dev_get_rtnl().
      
      There is one exception in net/ipv4/route.c which is in fact a pre-existing
      race condition.  I've marked it as such so that we remember to fix it.
      
      This patch is based on suggestions and prior work by Suzanne Wood and
      Paul McKenney.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e5ed6399
  20. 15 9月, 2005 2 次提交
    • F
      [PATCH] s390: qeth driver fixes · f3d242e8
      Frank Pavlic 提交于
      [patch 4/4] s390: qeth driver fixes .
      
      From: Frank Pavlic <pavlic@de.ibm.com>
      	- Clear read channel first prior to using ccw_device_set_offline.
      	- use QETH_DBF_TEXT instead of QETH_DBF_SPRINTF
      	- invoke qeth_halt_channel and qeth_clear_channel for all channels,
      	  even if halt/clear for one of the channel fails.
      	- enable qeth_arp_query function for GuestLAN devices
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |    2 -
       qeth_main.c |  106 +++++++++++++++++++++++++-----------------------------------
       qeth_sys.c  |   11 +++---
       3 files changed, 53 insertions(+), 66 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      f3d242e8
    • F
      [PATCH] s390: TSO related fixes in qeth driver · 9cb90de8
      Frank Pavlic 提交于
      Jeff,
      I'm sorry seems that they have not been sent out either ...
      ok here they come ...
      
      [patch 3/4] s390: TSO related fixes in qeth driver
      
      From: Frank Pavlic <pavlic@de.ibm.com>
      	TSO related fixes :
      	  - changing value of large_send attribute while network traffic
      	    is running caused program check and thus device recovery.
      	  - Due to hardware restriction discard packet when it exceeds 60K
      	    otherwise qeth will cause program checks and thus traffic stall
      	    when trying to send such huge packets.
      Signed-off-by: NFrank Pavlic <pavlic@de.ibm.com>
      
      diffstat:
       qeth.h      |    4 ++--
       qeth_main.c |   33 +++++++++++++++++++++------------
       qeth_sys.c  |   10 +++-------
       3 files changed, 26 insertions(+), 21 deletions(-)
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      9cb90de8
  21. 09 8月, 2005 1 次提交
  22. 13 7月, 2005 1 次提交
  23. 26 6月, 2005 1 次提交
    • M
      [PATCH] s390: debug feature changes · 66a464db
      Michael Holzheu 提交于
      This patch changes the memory allocation method for the s390 debug feature.
      Trace buffers had been allocated using the get_free_pages() function before.
      Therefore it was not possible to get big memory areas in a running system due
      to memory fragmentation.  Now the trace buffers are subdivided into several
      subbuffers with pagesize.  Therefore it is now possible to allocate more
      memory for the trace buffers and more trace records can be written.
      
      In addition to that, dynamic specification of the size of the trace buffers is
      implemented.  It is now possible to change the size of a trace buffer using a
      new debugfs file instance.  When writing a number into this file, the trace
      buffer size is changed to 'number * pagesize'.
      
      In the past all the traces could be obtained from userspace by accessing files
      in the "proc" filesystem.  Now with debugfs we have a new filesystem which
      should be used for debugging purposes.  This patch moves the debug feature
      from procfs to debugfs.
      
      Since the interface of debug_register() changed, all device drivers, which use
      the debug feature had to be adjusted.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      66a464db