]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/i40e_vf_representor.c
ethdev: change promiscuous callbacks to return status
[dpdk.git] / drivers / net / i40e / i40e_vf_representor.c
index 652f0acccaca1abec8515e0cea35a1f330c59f97..7f69e27a246bb8194e8236147dc40b67cba268bb 100644 (file)
@@ -274,22 +274,22 @@ i40e_vf_representor_stats_reset(struct rte_eth_dev *ethdev)
                representor->vf_id, &representor->stats_offset);
 }
 
-static void
+static int
 i40e_vf_representor_promiscuous_enable(struct rte_eth_dev *ethdev)
 {
        struct i40e_vf_representor *representor = ethdev->data->dev_private;
 
-       rte_pmd_i40e_set_vf_unicast_promisc(
+       return rte_pmd_i40e_set_vf_unicast_promisc(
                representor->adapter->eth_dev->data->port_id,
                representor->vf_id, 1);
 }
 
-static void
+static int
 i40e_vf_representor_promiscuous_disable(struct rte_eth_dev *ethdev)
 {
        struct i40e_vf_representor *representor = ethdev->data->dev_private;
 
-       rte_pmd_i40e_set_vf_unicast_promisc(
+       return rte_pmd_i40e_set_vf_unicast_promisc(
                representor->adapter->eth_dev->data->port_id,
                representor->vf_id, 0);
 }