aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390/net/ctcm_main.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-17net/s390 drivers: add missing 'const' attributeHeiko Carstens1-1/+1
Add missing 'const' attribute to avoid the following compile warnings: drivers/s390/net/ctcm_main.c: In function 'ctcm_init': drivers/s390/net/ctcm_main.c:1864: warning: assignment from incompatible pointer type drivers/s390/net/lcs.c: In function 'lcs_init_module': drivers/s390/net/lcs.c:2468: warning: assignment from incompatible pointer type drivers/s390/net/claw.c: In function 'claw_init': drivers/s390/net/claw.c:3408: warning: assignment from incompatible pointer type Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-11-13s390: remove cu3088 layer for lcs and ctcmUrsula Braun1-20/+84
The cu3088-driver used as common base for lcs- and ctcm-devices makes it difficult to assign the appropriate driver to an lcs-device or a ctcm-device. This patch eliminates the cu3088-driver and thus the root device "cu3088". Path /sys/devices/cu3088 is replaced with the pathes /sys/devices/lcs and /sys/devices/ctcm. Patch is based on a proposal from Cornelia Huck. Cc: Cornelia Huck <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-11-13ctcm: suspend has to wait for outstanding I/OFrank Blaschka1-0/+5
State transition to DEV_STATE_STOPPED indicates all outstanding I/O has finished. Add wait queue to wait for this state. Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-10-17ctcm rollback in case of errorsEinar Lueck1-17/+42
Group device now cleanly reacts to failures during channel start and implements a clean rollback. Signed-off-by: Einar Lueck <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-09-02drivers: Kill now superfluous ->last_rx storesEric Dumazet1-1/+0
The generic packet receive code takes care of setting netdev->last_rx when necessary, for the sake of the bonding ARP monitor. Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-07-05net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functionsPatrick McHardy1-5/+5
This patch is the result of an automatic spatch transformation to convert all ndo_start_xmit() return values of 0 to NETDEV_TX_OK. Some occurences are missed by the automatic conversion, those will be handled in a seperate patch. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-06-16[S390] pm: ctcm driver power management callbacksFrank Blaschka1-1/+36
Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
2009-05-20ctcm: avoid crash in ctcm_remove_deviceUrsula Braun1-4/+2
Channels are already removed when setting a ctcm-device offline. Thus ctcm_remove_device must not refer to channel information. Solution: delete channel information from the trace call in ctcm_remove_device. Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-03-24ctcm: fix minor findings from code analysis toolJoel A. Fowler1-5/+3
From: Ursula Braun <[email protected]> This patch fixes problems in the ctcm driver identified by static code analysis: o remove an unnecessary always true condition in ctcm_unpack_skb o remove duplicate assignment in ctc_mpc_alloc_channel o remove an unnecessary always true condition in ctcmpc_send_sweep_resp o remove duplicate initialization in ctcmpc_unpack_skb o shorten if condition in mpc_action_go_inop o remove INOP event if mpc group is undefined in mpc_action_doxid7 Signed-off-by: Joel A. Fowler <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-03-24ctcm: avoid wraparound in length of incoming dataRoel Kluin1-1/+2
Since the receive code should tolerate any incoming garbage, it should be protected against a potential wraparound when manipulating length values within incoming data. block_len is unsigned, so a too large subtraction will cause a wraparound. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-03-24ctcm: invalid return code from hard_start_xmitUrsula Braun1-2/+2
Avoid kernel warning by using the correct hard_start_xmit return code NETDEV_TX_BUSY for skb requeuing. Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-01-21ctcm: convert to net_device_opsFrank Blaschka1-6/+18
ctcm convert to net_device_ops. Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-12-25[S390] convert ctcm printks to dev_xxx and pr_xxx macros.Peter Tiedemann1-27/+45
Signed-off-by: Peter Tiedemann <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
2008-10-10[S390] more bus_id -> dev_name conversionsCornelia Huck1-2/+2
Some further bus_id -> dev_name() conversions in s390 code. Cc: Kay Sievers <[email protected]> Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
2008-10-10[S390] bus_id -> dev_name conversionsKay Sievers1-9/+9
bus_id -> dev_name() conversions in s390 code. [[email protected]: minor adaptions] Signed-off-by: Kay Sievers <[email protected]> Cc: Cornelia Huck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
2008-08-27ctcm: netdev->priv vs. netdev->ml_privPeter Tiedemann1-12/+12
Use netdev->ml_priv instead of netdev->priv Signed-off-by: Peter Tiedemann <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2008-07-22s390/net/ctcm: message cleanupPeter Tiedemann1-276/+238
Cc: Martin Schwidefsky <[email protected]> Signed-off-by: Peter Tiedemann <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2008-07-14[S390] cio: introduce fcx enabled scsw formatPeter Oberparleiter1-14/+14
Extend the scsw data structure to the format required by fcx. Also provide helper functions for easier access to fields which are present in both the traditional as well as the modified format. Signed-off-by: Peter Oberparleiter <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
2008-03-17ctcm: infrastructure for replaced ctc driverPeter Tiedemann1-0/+1772
ctcm driver supports the channel-to-channel connections of the old ctc driver plus an additional MPC protocol to provide SNA connectivity. This new ctcm driver replaces the existing ctc driver. Signed-off-by: Peter Tiedemann <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>