mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lsznet sources znetcontrolunits to use search_cu() and set the variable cu_idx. lsznet's own function search_cu_tcpip() is doing the same thing as search_cu() without setting cu_idx. Declare and move cu_idx to the global variable CU_IDX and consolidate the functions by letting search_cu_tcpip() set CU_IDX. Call search_cu_tcpip() instead of search_cu() and replace cu_idx with CU_IDX accordingly. search_cu() is removed and the CU_DEVDRV array is moved to lsznet. Reviewed-by: Aswin Karuvally <aswin@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
29 lines
703 B
Bash
29 lines
703 B
Bash
#!/bin/bash
|
|
#
|
|
# znetcontrolunits - define some common control unit mappings
|
|
#
|
|
# This definitions are not intended to be used as standalone tool, but should be
|
|
# used from other tools like a library. E.g. znetconf is one exploiter
|
|
# of them.
|
|
#
|
|
# Copyright IBM Corp. 2008, 2017
|
|
#
|
|
# s390-tools is free software; you can redistribute it and/or modify
|
|
# it under the terms of the MIT license. See LICENSE for details.
|
|
#
|
|
|
|
# The arrays (among other things) should be adapted, if any of those device
|
|
# drivers start supporting different CU types/models.
|
|
|
|
readonly -a CU=(
|
|
1731/01
|
|
1731/05
|
|
3088/08
|
|
3088/1f
|
|
3088/1e
|
|
3088/60
|
|
1731/02
|
|
1731/02
|
|
)
|
|
# 1731/06 (OSN) is no longer supported
|