diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2021-06-11 09:33:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-11 21:49:15 +0200 |
commit | 838e4cc80814aad973fbfdd836b2b25eb27681f1 (patch) | |
tree | ea9d42e4845752831be90a70b999d97373fc6dd3 /arch/s390/include/asm/qdio.h | |
parent | s390/qeth: consolidate completion of pending TX buffers (diff) | |
download | linux-838e4cc80814aad973fbfdd836b2b25eb27681f1.tar.xz linux-838e4cc80814aad973fbfdd836b2b25eb27681f1.zip |
s390/qeth: remove QAOB's pointer to its TX buffer
Maintaining a pointer inside the aob's user-definable area is fragile
and unnecessary. At this stage we only need it to overload the buffer's
state field, and to access the buffer's TX queue.
The first part is easily solved by tracking the aob's state within the
aob itself. This also feels much cleaner and self-contained.
For enabling the access to the associated TX queue, we can store the
queue's index in the aob.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/s390/include/asm/qdio.h')
-rw-r--r-- | arch/s390/include/asm/qdio.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/include/asm/qdio.h b/arch/s390/include/asm/qdio.h index 8fc52679543d..cb4f73c7228d 100644 --- a/arch/s390/include/asm/qdio.h +++ b/arch/s390/include/asm/qdio.h @@ -137,7 +137,6 @@ struct slibe { * @user0: user defineable value * @res4: reserved paramater * @user1: user defineable value - * @user2: user defineable value */ struct qaob { u64 res0[6]; @@ -152,8 +151,7 @@ struct qaob { u16 dcount[QDIO_MAX_ELEMENTS_PER_BUFFER]; u64 user0; u64 res4[2]; - u64 user1; - u64 user2; + u8 user1[16]; } __attribute__ ((packed, aligned(256))); /** |