]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: store RX and TX subCRQ handle array in ibmvnic_adapter struct
authorCristobal Forno <cforno12@linux.ibm.com>
Wed, 19 Aug 2020 18:16:23 +0000 (13:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2020 22:38:16 +0000 (15:38 -0700)
commitdefcbbb708d401482ca5abd4fe9eab0fc5afb1ef
treec01123b7bffed24bb82f9f63cf0966dbbbb8bc64
parent40a02c811e05b15207b6fe6fda48ed00997c5953
ibmvnic: store RX and TX subCRQ handle array in ibmvnic_adapter struct

Currently the driver reads RX and TX subCRQ handle array directly from
a DMA-mapped buffer address when it needs to make a H_SEND_SUBCRQ
hcall. This patch stores that information in the ibmvnic_sub_crq_queue
structure instead of reading from the buffer received at login. The
overall goal of this patch is to parse relevant information from the
login response buffer and store it in the driver's private data
structures so that we don't need to read directly from the buffer and
can then free up that memory.

Signed-off-by: Cristobal Forno <cforno12@linux.ibm.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h