git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: change promiscuous callbacks to return status
[dpdk.git]
/
drivers
/
net
/
enetc
/
enetc_ethdev.c
diff --git
a/drivers/net/enetc/enetc_ethdev.c
b/drivers/net/enetc/enetc_ethdev.c
index
dec42b9
..
1ec66d0
100644
(file)
--- a/
drivers/net/enetc/enetc_ethdev.c
+++ b/
drivers/net/enetc/enetc_ethdev.c
@@
-523,7
+523,7
@@
enetc_dev_close(struct rte_eth_dev *dev)
dev->data->nb_tx_queues = 0;
}
dev->data->nb_tx_queues = 0;
}
-static
void
+static
int
enetc_promiscuous_enable(struct rte_eth_dev *dev)
{
struct enetc_eth_hw *hw =
enetc_promiscuous_enable(struct rte_eth_dev *dev)
{
struct enetc_eth_hw *hw =
@@
-537,9
+537,11
@@
enetc_promiscuous_enable(struct rte_eth_dev *dev)
psipmr |= ENETC_PSIPMR_SET_UP(0) | ENETC_PSIPMR_SET_MP(0);
enetc_port_wr(enetc_hw, ENETC_PSIPMR, psipmr);
psipmr |= ENETC_PSIPMR_SET_UP(0) | ENETC_PSIPMR_SET_MP(0);
enetc_port_wr(enetc_hw, ENETC_PSIPMR, psipmr);
+
+ return 0;
}
}
-static
void
+static
int
enetc_promiscuous_disable(struct rte_eth_dev *dev)
{
struct enetc_eth_hw *hw =
enetc_promiscuous_disable(struct rte_eth_dev *dev)
{
struct enetc_eth_hw *hw =
@@
-555,6
+557,8
@@
enetc_promiscuous_disable(struct rte_eth_dev *dev)
psipmr &= (~ENETC_PSIPMR_SET_MP(0));
enetc_port_wr(enetc_hw, ENETC_PSIPMR, psipmr);
psipmr &= (~ENETC_PSIPMR_SET_MP(0));
enetc_port_wr(enetc_hw, ENETC_PSIPMR, psipmr);
+
+ return 0;
}
static void
}
static void