crypto/nx: Remove 'pid' in vas_tx_win_attr struct
When window is opened, pid reference is taken for user space windows. Not needed for kernel windows. So remove 'pid' in vas_tx_win_attr struct. Signed-off-by: Haren Myneni <haren@linux.ibm.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1587114674.2275.1132.camel@hbabu-laptop
This commit is contained in:
Родитель
1af11ae225
Коммит
040b00acec
|
@ -86,7 +86,6 @@ struct vas_tx_win_attr {
|
||||||
int wcreds_max;
|
int wcreds_max;
|
||||||
int lpid;
|
int lpid;
|
||||||
int pidr; /* hardware PID (from SPRN_PID) */
|
int pidr; /* hardware PID (from SPRN_PID) */
|
||||||
int pid; /* linux process id */
|
|
||||||
int pswid;
|
int pswid;
|
||||||
int rsvd_txbuf_count;
|
int rsvd_txbuf_count;
|
||||||
int tc_mode;
|
int tc_mode;
|
||||||
|
|
|
@ -692,7 +692,6 @@ static struct vas_window *nx_alloc_txwin(struct nx_coproc *coproc)
|
||||||
*/
|
*/
|
||||||
vas_init_tx_win_attr(&txattr, coproc->ct);
|
vas_init_tx_win_attr(&txattr, coproc->ct);
|
||||||
txattr.lpid = 0; /* lpid is 0 for kernel requests */
|
txattr.lpid = 0; /* lpid is 0 for kernel requests */
|
||||||
txattr.pid = 0; /* pid is 0 for kernel requests */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Open a VAS send window which is used to send request to NX.
|
* Open a VAS send window which is used to send request to NX.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче