summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann2019-06-27 17:01:26 +0200
committerDavid S. Miller2019-06-27 19:18:23 +0200
commit2cfb4810a3f2c7f9b20c6def45ef8a4dbb730387 (patch)
treedd9c8b7fbbbe15edda8ff2951b7c72c35071e52a /drivers/s390/net/qeth_core_main.c
parents390/qeth: dynamically allocate diag cmds (diff)
downloadkernel-qcow2-linux-2cfb4810a3f2c7f9b20c6def45ef8a4dbb730387.tar.gz
kernel-qcow2-linux-2cfb4810a3f2c7f9b20c6def45ef8a4dbb730387.tar.xz
kernel-qcow2-linux-2cfb4810a3f2c7f9b20c6def45ef8a4dbb730387.zip
s390/qeth: dynamically allocate vnicc cmds
The VNICC code is somewhat quirky in that it defers the whole cmd setup to a common helper qeth_l2_vnicc_request(). Some of the cmd specifics are then passed in via parameter, while others are simply hard-coded. Split the whole machinery up into the usual format: one helper that allocates the cmd & fills in the common fields, while all the cmd originators take care of their sub-cmd type specific work. This makes it much easier to calculate the cmd's precise length, and reduces code complexity. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Reviewed-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_main.c')
0 files changed, 0 insertions, 0 deletions