summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_mpc.h
diff options
context:
space:
mode:
authorJulian Wiedmann2019-06-27 17:01:23 +0200
committerDavid S. Miller2019-06-27 19:18:23 +0200
commit1c696c896f218b12d5f92d892fffee5abd0265c9 (patch)
tree5e71283f227405533ec655bf77913dc8ecf310b7 /drivers/s390/net/qeth_core_mpc.h
parents390/qeth: dynamically allocate simple IPA cmds (diff)
downloadkernel-qcow2-linux-1c696c896f218b12d5f92d892fffee5abd0265c9.tar.gz
kernel-qcow2-linux-1c696c896f218b12d5f92d892fffee5abd0265c9.tar.xz
kernel-qcow2-linux-1c696c896f218b12d5f92d892fffee5abd0265c9.zip
s390/qeth: clarify parameter for simple assist cmds
For code that uses qeth_send_simple_setassparms_prot(), we currently can't differentiate whether the cmd should contain (1) no parameter, or (2) a 4-byte parameter with value 0. At the moment this doesn't cause any trouble. But when using dynamically allocated cmds, we need to know whether to allocate & transmit an additional 4 bytes of zeroes. So instead of the raw parameter value, pass a parameter pointer (or NULL) to qeth_send_simple_setassparms_prot(). Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_mpc.h')
-rw-r--r--drivers/s390/net/qeth_core_mpc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core_mpc.h b/drivers/s390/net/qeth_core_mpc.h
index e84249f8803e..61fc4005dd53 100644
--- a/drivers/s390/net/qeth_core_mpc.h
+++ b/drivers/s390/net/qeth_core_mpc.h
@@ -437,6 +437,8 @@ struct qeth_ipacmd_setassparms {
} data;
} __attribute__ ((packed));
+#define SETASS_DATA_SIZEOF(field) FIELD_SIZEOF(struct qeth_ipacmd_setassparms,\
+ data.field)
/* SETRTG IPA Command: ****************************************************/
struct qeth_set_routing {