diff options
| author | Harshitha Ramamurthy <hramamurthy@google.com> | 2026-09-30 19:04:21 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 16:30:04 -0700 |
| commit | fd1e72e0966171d63e2604d5a42305f410d5825d (patch) | |
| tree | 5eb84394a7ec2c6efc5e7f8c157e1f526c5cf13e /tools/lib/python/kdoc/python_version.py | |
| parent | a01cb6b77e9a3fe0db8ea247a89892a1db98c6b1 (diff) | |
gve: refactor gve_init_priv for reset path
The driver does not need to renegotiate all properties with
the device on a reset since those should stay constant through
a reset. Hence change gve_init_priv() into a method that only
sets these properties into the priv structure and hence needs
to be only called once during gve_probe().
To achieve this end state of gve_init_priv(), do the following:
- introduce gve_adminq_init() which writes the driver version register
and allocates the AdminQ and call it in gve_probe()
- call gve_adminq_get_device_properties() into gve_probe() to learn device
properties
- introduce gve_setup_device() which deals with device setup logic and
call it in gve_probe()
- resetting no. of registered pages is moved into gve_setup_device() since
that needs to be reset every time queues are re-created.
With these changes, gve_adminq_get_device_properties() and
gve_init_priv() are only called once during gve_probe.
gve_reset_recovery() now calls targeted setup functions directly.
This prepares the driver to add mailbox mode's control plane
initialization and device properties negotiation in the same place
as is done in AdminQ mode in the upcoming patches when adding the
mailbox ABI.
These changes are only code movement, no functional change.
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jordan Rhee <jordanrhee@google.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20260930190428.1130007-6-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
