]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/drivers/raw/ifpga_rawdev/base/ifpga_fme_pr.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / drivers / raw / ifpga_rawdev / base / ifpga_fme_pr.c
index ec0beeb1a14efa591e26d414ac7d2b5b0d6cf587..efa72660f1439118c8f73c0796a88d25396dd898 100644 (file)
@@ -257,7 +257,7 @@ static int fme_pr(struct ifpga_hw *hw, u32 port_id, void *buffer, u32 size,
                return -EINVAL;
        }
 
-       memset(&info, 0, sizeof(struct fpga_pr_info));
+       opae_memset(&info, 0, sizeof(struct fpga_pr_info));
        info.flags = FPGA_MGR_PARTIAL_RECONFIG;
        info.port_id = port_id;
 
@@ -315,7 +315,7 @@ int do_pr(struct ifpga_hw *hw, u32 port_id, void *buffer, u32 size, u64 *status)
        return fme_pr(hw, port_id, buf, size, status);
 }
 
-static int fme_pr_mgmt_init(struct feature *feature)
+static int fme_pr_mgmt_init(struct ifpga_feature *feature)
 {
        struct feature_fme_pr *fme_pr;
        struct feature_header fme_pr_header;
@@ -339,14 +339,14 @@ static int fme_pr_mgmt_init(struct feature *feature)
        return 0;
 }
 
-static void fme_pr_mgmt_uinit(struct feature *feature)
+static void fme_pr_mgmt_uinit(struct ifpga_feature *feature)
 {
        UNUSED(feature);
 
        dev_info(NULL, "FME PR MGMT UInit.\n");
 }
 
-struct feature_ops fme_pr_mgmt_ops = {
+struct ifpga_feature_ops fme_pr_mgmt_ops = {
        .init = fme_pr_mgmt_init,
        .uinit = fme_pr_mgmt_uinit,
 };