e1b176af3d
In addition to retrieving the device capabilities, a VF may also need to retrieve the mapping of its ring pairs to crypto and or compression services in order to work properly. Make the VF receive the ring-to-service mappings from the PF by means of a new REQ_RING_SVC_MAP Block Message and add the request and response logic on VF and PF respectively. This change requires to bump the PFVF protocol to version 4. Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 lines
598 B
C
19 lines
598 B
C
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
|
|
/* Copyright(c) 2021 Intel Corporation */
|
|
#ifndef ADF_PFVF_PF_MSG_H
|
|
#define ADF_PFVF_PF_MSG_H
|
|
|
|
#include "adf_accel_devices.h"
|
|
|
|
void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev);
|
|
|
|
typedef int (*adf_pf2vf_blkmsg_provider)(struct adf_accel_dev *accel_dev,
|
|
u8 *buffer, u8 compat);
|
|
|
|
int adf_pf_capabilities_msg_provider(struct adf_accel_dev *accel_dev,
|
|
u8 *buffer, u8 comapt);
|
|
int adf_pf_ring_to_svc_msg_provider(struct adf_accel_dev *accel_dev,
|
|
u8 *buffer, u8 comapt);
|
|
|
|
#endif /* ADF_PFVF_PF_MSG_H */
|