s390: qeth and iucv patches
Subsystems (7)
v2 cover s390: qeth and iucv patches
From: Ursula Braun <[email protected]>
Hi Dave,
here is version 2 of some s390 related qeth patches for net-next. The patch by Thomas Richter adds a new feature to the qeth layer2 code; the remaining patches are minor improvements.
Version 2 of patch 4 uses the desired indentation in function declarations and definitions spanning multiple lines in almost all cases. Thomas run into a conflict with the maximum number of columns once. Thus you will still see one function definition using an earlier column before the opening paranthesis.
shortlog:
Eugene Crosser (1):
qeth: remove extraneous length from %pM format
Lakhvich Dmitriy (1):
qeth: no write permission for readonly sysattr
Thomas Richter(1):
qeth: add layer 2 RX/TX checksum offloading
Ursula Braun(2):
qeth: move OSA portname into deprecated status
s390/iucv: do not use arrays as argument
Thanks,
Ursula
Signature · 1 line
2.3.8
PATCH v2 1/5 qeth: remove extraneous length from %pM format
From: Eugene Crosser <[email protected]>
Length specifier in the %pM format is not supported (at least, not documented). Remove it, and also an extraneous '&' for the array.
--- drivers/s390/net/qeth_l2_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/s390/net/qeth_l2_main.c +2 -2
@@ -1452,8 +1452,8 @@ static void qeth_bridge_emit_host_event(struct qeth_card *card, env[i] = str[i]; i++; }if (code &IPA_ADDR_CHANGE_CODE_MACADDR ) { -snprintf (str[i],sizeof (str[i]),"MAC=%pM6" , - &addr_lnid->mac); +snprintf (str[i],sizeof (str[i]),"MAC=%pM" , + addr_lnid->mac); env[i] = str[i]; i++; } snprintf(str[i], sizeof(str[i]), "NTOK_BUSID=%x.%x.%04x",
Signature · 1 line
2.3.8
PATCH v2 2/5 qeth: no write permission for readonly sysattr
In reply to Ursula BraunFrom: Lakhvich Dmitriy <[email protected]>
User is not allowed to write into bridge_state sysfs file. Fixed attribute not mislead the user
--- drivers/s390/net/qeth_l2_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/net/qeth_l2_sys.c +1 -1
@@ -109,7 +109,7 @@ static ssize_t qeth_bridge_port_state_show(struct device *dev,return qeth_bridge_port_role_state_show (dev, attr, buf,1 ); } -static DEVICE_ATTR(bridge_state, 0644, qeth_bridge_port_state_show, +static DEVICE_ATTR(bridge_state, 0444, qeth_bridge_port_state_show, NULL); static ssize_t qeth_bridgeport_hostnotification_show(struct device *dev,
Signature · 1 line
2.3.8
PATCH v2 3/5 qeth: move OSA portname into deprecated status
In reply to Ursula BraunFrom: Ursula Braun <[email protected]>
An OSA-Express port name was required to identify a shared OSA port. All operating system instances that shared the port had to use the same port name. This requirement no longer applies.
--- drivers/s390/net/qeth_core.h | 2 -- drivers/s390/net/qeth_core_main.c | 63 +++++---------------------------------- drivers/s390/net/qeth_core_sys.c | 43 +++----------------------- 3 files changed, 11 insertions(+), 97 deletions(-)
drivers/s390/net/qeth_core.h +0 -2
@@ -663,9 +663,7 @@ struct qeth_card_info {char mcl_level[QETH_MCL_LENGTH +1 ];int guestlan;int mac_bits; -int portname_required;int portno; -char portname[9 ];enum qeth_card_types type;enum qeth_link_types link_type;int is_multicast_different;
drivers/s390/net/qeth_core_main.c +7 -56
87 lines not on this page · raw message
drivers/s390/net/qeth_core_sys.c +4 -39
56 lines not on this page · raw message
Signature · 1 line
2.3.8
PATCH v2 4/5 qeth: add layer 2 RX/TX checksum offloading
In reply to Ursula BraunFrom: Thomas Richter <[email protected]>
Checksum offloading for send and receive is already supported for layer 3 (IP layer). This patch
adds support for RX and TX hardware checksum offloading for layer 2 (MAC layer). The hardware calculates the checksum for IP UDP and TCP packets.
This patch moves the hardware checksum offloading setup to the set of common functions in qeth_core_main.c. Layer 2 and layer 3 now simply call the same common functions.
Also note that TX checksum offloading is always enabled. The device driver relies on the TCP/IP stack to make use of this feature.
--- drivers/s390/net/qeth_core.h | 9 ++ drivers/s390/net/qeth_core_main.c | 178 ++++++++++++++++++++++++++++++++++++-- drivers/s390/net/qeth_l2_main.c | 87 +++++++++++++++++-- drivers/s390/net/qeth_l3_main.c | 158 ++++++--------------------------- 4 files changed, 285 insertions(+), 147 deletions(-)
drivers/s390/net/qeth_core.h +9 -0
@@ -967,6 +967,15 @@ int qeth_hw_trap(struct qeth_card *, enum qeth_diags_trap_action);int qeth_query_ipassists (struct qeth_card *,enum qeth_prot_versions prot);void qeth_trace_features (struct qeth_card *);void qeth_close_dev (struct qeth_card *); +int qeth_send_simple_setassparms (struct qeth_card *,enum qeth_ipa_funcs , +__u16 ,long ); +int qeth_send_setassparms (struct qeth_card *,struct qeth_cmd_buffer *,__u16 , +long , +int (*reply_cb)(struct qeth_card *, +struct qeth_reply *,unsigned long ), +void *); +int qeth_start_ipa_tx_checksum (struct qeth_card *); +int qeth_set_rx_csum (struct qeth_card *,int );/* exports for OSN */ int qeth_osn_assist (struct net_device *,void *,int );
drivers/s390/net/qeth_core_main.c +171 -7
202 lines not on this page · raw message
drivers/s390/net/qeth_l2_main.c +80 -7
142 lines not on this page · raw message
drivers/s390/net/qeth_l3_main.c +25 -133
288 lines not on this page · raw message
Signature · 1 line
2.3.8
PATCH v2 5/5 s390/iucv: do not use arrays as argument
In reply to Ursula BraunFrom: Ursula Braun <[email protected]>
The iucv code uses arrays as arguments. Even though this does not really cause a problem, it could be misleading, since the compiler turns array arguments into just a pointer argument. To be more precise this patch changes the array arguments into pointers.
--- drivers/s390/char/monreader.c | 4 ++-- drivers/s390/char/vmlogrdr.c | 8 ++++---- drivers/s390/net/netiucv.c | 21 ++++++++++----------- drivers/s390/net/smsgiucv.c | 5 ++--- drivers/tty/hvc/hvc_iucv.c | 10 +++++----- include/net/iucv/iucv.h | 20 ++++++++++---------- net/iucv/af_iucv.c | 9 ++++----- net/iucv/iucv.c | 12 ++++++------ 8 files changed, 43 insertions(+), 46 deletions(-)
drivers/s390/char/monreader.c +2 -2
@@ -229,7 +229,7 @@ static struct mon_msg *mon_next_message(struct mon_private *monpriv)/****************************************************************************** * IUCV handler * *****************************************************************************/ -static void mon_iucv_path_complete (struct iucv_path *path,u8 ipuser[16 ]) +static void mon_iucv_path_complete (struct iucv_path *path,u8 *ipuser) {struct mon_private *monpriv = path->private;
@@ -237,7 +237,7 @@ static void mon_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])wake_up (&mon_conn_wait_queue); } -static void mon_iucv_path_severed (struct iucv_path *path,u8 ipuser[16 ]) +static void mon_iucv_path_severed (struct iucv_path *path,u8 *ipuser) {struct mon_private *monpriv = path->private;
drivers/s390/char/vmlogrdr.c +4 -4
@@ -99,8 +99,8 @@ static const struct file_operations vmlogrdr_fops = { }; -static void vmlogrdr_iucv_path_complete (struct iucv_path *,u8 ipuser[16 ]); -static void vmlogrdr_iucv_path_severed (struct iucv_path *,u8 ipuser[16 ]); +static void vmlogrdr_iucv_path_complete (struct iucv_path *,u8 *ipuser); +static void vmlogrdr_iucv_path_severed (struct iucv_path *,u8 *ipuser);static void vmlogrdr_iucv_message_pending (struct iucv_path *,struct iucv_message *);
@@ -160,7 +160,7 @@ static struct cdev *vmlogrdr_cdev = NULL;static int recording_class_AB; -static void vmlogrdr_iucv_path_complete (struct iucv_path *path,u8 ipuser[16 ]) +static void vmlogrdr_iucv_path_complete (struct iucv_path *path,u8 *ipuser) {struct vmlogrdr_priv_t * logptr = path->private;
@@ -171,7 +171,7 @@ static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 ipuser[16]) } -static void vmlogrdr_iucv_path_severed (struct iucv_path *path,u8 ipuser[16 ]) +static void vmlogrdr_iucv_path_severed (struct iucv_path *path,u8 *ipuser) {struct vmlogrdr_priv_t * logptr = path->private;u8 reason = (u8 ) ipuser[8 ];
drivers/s390/net/netiucv.c +10 -11
@@ -149,12 +149,11 @@ static struct device_driver netiucv_driver = { .pm = &netiucv_pm_ops, }; -static int netiucv_callback_connreq (struct iucv_path *, -u8 ipvmid[8 ],u8 ipuser[16 ]); -static void netiucv_callback_connack (struct iucv_path *,u8 ipuser[16 ]); -static void netiucv_callback_connrej (struct iucv_path *,u8 ipuser[16 ]); -static void netiucv_callback_connsusp (struct iucv_path *,u8 ipuser[16 ]); -static void netiucv_callback_connres (struct iucv_path *,u8 ipuser[16 ]); +static int netiucv_callback_connreq (struct iucv_path *,u8 *,u8 *); +static void netiucv_callback_connack (struct iucv_path *,u8 *); +static void netiucv_callback_connrej (struct iucv_path *,u8 *); +static void netiucv_callback_connsusp (struct iucv_path *,u8 *); +static void netiucv_callback_connres (struct iucv_path *,u8 *);static void netiucv_callback_rx (struct iucv_path *,struct iucv_message *);static void netiucv_callback_txdone (struct iucv_path *,struct iucv_message *);
@@ -556,8 +555,8 @@ static void netiucv_callback_connack(struct iucv_path *path, u8 ipuser[16])fsm_event (conn->fsm,CONN_EVENT_CONN_ACK , conn); } -static int netiucv_callback_connreq (struct iucv_path *path, -u8 ipvmid[8 ],u8 ipuser[16 ]) +static int netiucv_callback_connreq (struct iucv_path *path,u8 *ipvmid, +u8 *ipuser) {struct iucv_connection *conn = path->private;struct iucv_event ev;
@@ -587,21 +586,21 @@ static int netiucv_callback_connreq(struct iucv_path *path,return rc; } -static void netiucv_callback_connrej (struct iucv_path *path,u8 ipuser[16 ]) +static void netiucv_callback_connrej (struct iucv_path *path,u8 *ipuser) {struct iucv_connection *conn = path->private;fsm_event (conn->fsm,CONN_EVENT_CONN_REJ , conn); } -static void netiucv_callback_connsusp (struct iucv_path *path,u8 ipuser[16 ]) +static void netiucv_callback_connsusp (struct iucv_path *path,u8 *ipuser) {struct iucv_connection *conn = path->private;fsm_event (conn->fsm,CONN_EVENT_CONN_SUS , conn); } -static void netiucv_callback_connres (struct iucv_path *path,u8 ipuser[16 ]) +static void netiucv_callback_connres (struct iucv_path *path,u8 *ipuser) {struct iucv_connection *conn = path->private;
drivers/s390/net/smsgiucv.c +2 -3
@@ -49,7 +49,7 @@ static DEFINE_SPINLOCK(smsg_list_lock);static LIST_HEAD (smsg_list);static int iucv_path_connected; -static int smsg_path_pending (struct iucv_path *,u8 ipvmid[8 ],u8 ipuser[16 ]); +static int smsg_path_pending (struct iucv_path *,u8 *,u8 *);static void smsg_message_pending (struct iucv_path *,struct iucv_message *);static struct iucv_handler smsg_handler = {
@@ -57,8 +57,7 @@ static struct iucv_handler smsg_handler = { .message_pending = smsg_message_pending, }; -static int smsg_path_pending (struct iucv_path *path,u8 ipvmid[8 ], -u8 ipuser[16 ]) +static int smsg_path_pending (struct iucv_path *path,u8 *ipvmid,u8 *ipuser) {if (strncmp (ipvmid,"*MSG " ,8 ) !=0 )return -EINVAL ;
drivers/tty/hvc/hvc_iucv.c +5 -5
@@ -88,8 +88,8 @@ struct iucv_tty_buffer { };/* IUCV callback handler */ -static int hvc_iucv_path_pending (struct iucv_path *,u8 [8 ],u8 [16 ]); -static void hvc_iucv_path_severed (struct iucv_path *,u8 [16 ]); +static int hvc_iucv_path_pending (struct iucv_path *,u8 *,u8 *); +static void hvc_iucv_path_severed (struct iucv_path *,u8 *);static void hvc_iucv_msg_pending (struct iucv_path *,struct iucv_message *);static void hvc_iucv_msg_complete (struct iucv_path *,struct iucv_message *);
@@ -782,8 +782,8 @@ static int hvc_iucv_filter_connreq(u8 ipvmid[8])* * Locking: struct hvc_iucv_private->lock */ -static int hvc_iucv_path_pending (struct iucv_path *path, -u8 ipvmid[8 ],u8 ipuser[16 ]) +static int hvc_iucv_path_pending (struct iucv_path *path,u8 *ipvmid, +u8 *ipuser) {struct hvc_iucv_private *priv, *tmp;u8 wildcard[9 ] ="lnxhvc " ;
@@ -881,7 +881,7 @@ out_path_handled:* * Locking: struct hvc_iucv_private->lock */ -static void hvc_iucv_path_severed (struct iucv_path *path,u8 ipuser[16 ]) +static void hvc_iucv_path_severed (struct iucv_path *path,u8 *ipuser) {struct hvc_iucv_private *priv = path->private;
include/net/iucv/iucv.h +10 -10
@@ -141,14 +141,14 @@ struct iucv_handler {* called is the order of the registration of the iucv handlers * to the base code. */ -int (*path_pending)(struct iucv_path *,u8 ipvmid[8 ],u8 ipuser[16 ]); +int (*path_pending)(struct iucv_path *,u8 *ipvmid,u8 *ipuser);/* * The path_complete function is called after an iucv interrupt * type 0x02 has been received for a path that has been established * for this handler with iucv_path_connect and got accepted by the * peer with iucv_path_accept. */ -void (*path_complete)(struct iucv_path *,u8 ipuser[16 ]); +void (*path_complete)(struct iucv_path *,u8 *ipuser);/* * The path_severed function is called after an iucv interrupt * type 0x03 has been received. The communication peer shutdown
@@ -156,20 +156,20 @@ struct iucv_handler {* remaining messages can be received until a iucv_path_sever * shuts down the other end of the path as well. */ -void (*path_severed)(struct iucv_path *,u8 ipuser[16 ]); +void (*path_severed)(struct iucv_path *,u8 *ipuser);/* * The path_quiesced function is called after an icuv interrupt * type 0x04 has been received. The communication peer has quiesced * the path. Delivery of messages is stopped until iucv_path_resume * has been called. */ -void (*path_quiesced)(struct iucv_path *,u8 ipuser[16 ]); +void (*path_quiesced)(struct iucv_path *,u8 *ipuser);/* * The path_resumed function is called after an icuv interrupt * type 0x05 has been received. The communication peer has resumed * the path. */ -void (*path_resumed)(struct iucv_path *,u8 ipuser[16 ]); +void (*path_resumed)(struct iucv_path *,u8 *ipuser);/* * The message_pending function is called after an icuv interrupt * type 0x06 or type 0x07 has been received. A new message is
@@ -256,7 +256,7 @@ static inline void iucv_path_free(struct iucv_path *path)* Returns the result of the CP IUCV call. */ int iucv_path_accept (struct iucv_path *path,struct iucv_handler *handler, -u8 userdata[16 ],void *private); +u8 *userdata,void *private);/** * iucv_path_connect
@@ -274,7 +274,7 @@ int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler,* Returns the result of the CP IUCV call. */ int iucv_path_connect (struct iucv_path *path,struct iucv_handler *handler, -u8 userid[8 ],u8 system[8 ],u8 userdata[16 ], +u8 *userid,u8 *system,u8 *userdata,void *private);/**
@@ -287,7 +287,7 @@ int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler,* * Returns the result from the CP IUCV call. */ -int iucv_path_quiesce (struct iucv_path *path,u8 userdata[16 ]); +int iucv_path_quiesce (struct iucv_path *path,u8 *userdata);/** * iucv_path_resume:
@@ -299,7 +299,7 @@ int iucv_path_quiesce(struct iucv_path *path, u8 userdata[16]);* * Returns the result from the CP IUCV call. */ -int iucv_path_resume (struct iucv_path *path,u8 userdata[16 ]); +int iucv_path_resume (struct iucv_path *path,u8 *userdata);/** * iucv_path_sever
@@ -310,7 +310,7 @@ int iucv_path_resume(struct iucv_path *path, u8 userdata[16]);* * Returns the result from the CP IUCV call. */ -int iucv_path_sever (struct iucv_path *path,u8 userdata[16 ]); +int iucv_path_sever (struct iucv_path *path,u8 *userdata);/** * iucv_message_purge
net/iucv/af_iucv.c +4 -5
@@ -95,11 +95,10 @@ static void afiucv_hs_callback_txnotify(struct sk_buff *, enum iucv_tx_notify);/* Call Back functions */ static void iucv_callback_rx (struct iucv_path *,struct iucv_message *);static void iucv_callback_txdone (struct iucv_path *,struct iucv_message *); -static void iucv_callback_connack (struct iucv_path *,u8 ipuser[16 ]); -static int iucv_callback_connreq (struct iucv_path *,u8 ipvmid[8 ], -u8 ipuser[16 ]); -static void iucv_callback_connrej (struct iucv_path *,u8 ipuser[16 ]); -static void iucv_callback_shutdown (struct iucv_path *,u8 ipuser[16 ]); +static void iucv_callback_connack (struct iucv_path *,u8 *); +static int iucv_callback_connreq (struct iucv_path *,u8 *,u8 *); +static void iucv_callback_connrej (struct iucv_path *,u8 *); +static void iucv_callback_shutdown (struct iucv_path *,u8 *);static struct iucv_sock_list iucv_sk_list = { .lock =__RW_LOCK_UNLOCKED (iucv_sk_list.lock),
net/iucv/iucv.c +6 -6
@@ -713,7 +713,7 @@ static struct notifier_block __refdata iucv_cpu_notifier = {* * Sever an iucv path to free up the pathid. Used internally. */ -static int iucv_sever_pathid (u16 pathid,u8 userdata[16 ]) +static int iucv_sever_pathid (u16 pathid,u8 *userdata) {union iucv_param *parm;
@@ -876,7 +876,7 @@ static struct notifier_block iucv_reboot_notifier = {* Returns the result of the CP IUCV call. */ int iucv_path_accept (struct iucv_path *path,struct iucv_handler *handler, -u8 userdata[16 ],void *private) +u8 *userdata,void *private) {union iucv_param *parm;int rc;
@@ -923,7 +923,7 @@ EXPORT_SYMBOL(iucv_path_accept);* Returns the result of the CP IUCV call. */ int iucv_path_connect (struct iucv_path *path,struct iucv_handler *handler, -u8 userid[8 ],u8 system[8 ],u8 userdata[16 ], +u8 *userid,u8 *system,u8 *userdata,void *private) {union iucv_param *parm;
@@ -985,7 +985,7 @@ EXPORT_SYMBOL(iucv_path_connect);* * Returns the result from the CP IUCV call. */ -int iucv_path_quiesce (struct iucv_path *path,u8 userdata[16 ]) +int iucv_path_quiesce (struct iucv_path *path,u8 *userdata) {union iucv_param *parm;int rc;
@@ -1017,7 +1017,7 @@ EXPORT_SYMBOL(iucv_path_quiesce);* * Returns the result from the CP IUCV call. */ -int iucv_path_resume (struct iucv_path *path,u8 userdata[16 ]) +int iucv_path_resume (struct iucv_path *path,u8 *userdata) {union iucv_param *parm;int rc;
@@ -1047,7 +1047,7 @@ out:* * Returns the result from the CP IUCV call. */ -int iucv_path_sever (struct iucv_path *path,u8 userdata[16 ]) +int iucv_path_sever (struct iucv_path *path,u8 *userdata) {int rc;
Signature · 1 line
2.3.8
David Miller
maintainerFrom: Ursula Braun <[email protected]>
Date: Fri, 18 Sep 2015 16:06:47 +0200
Quoted 7 lines
here is version 2 of some s390 related qeth patches for net-next. The patch by Thomas Richter adds a new feature to the qeth layer2 code; the remaining patches are minor improvements.
Version 2 of patch 4 uses the desired indentation in function declarations and definitions spanning multiple lines in almost all cases. Thomas run into a conflict with the maximum number of columns once. Thus you will still see one function definition using an earlier column before the opening paranthesis.
Series applied to net-next, thanks.