net/atlantic: enable broadcast traffic
[dpdk.git] / drivers / raw / ifpga_rawdev / base / ifpga_fme_pr.c
index 49d8cc5..efa7266 100644 (file)
@@ -139,7 +139,7 @@ static int fme_pr_write(struct ifpga_fme_hw *fme_dev,
                        pr_credit--;
                } else {
                        WARN_ON(1);
-                       return -EINVAL;
+                       ret = -EINVAL;
                        goto done;
                }
        }
@@ -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,
 };