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: get rid of device type
[dpdk.git]
/
examples
/
ip_pipeline
/
init.c
diff --git
a/examples/ip_pipeline/init.c
b/examples/ip_pipeline/init.c
index
cd167f6
..
0dbc332
100644
(file)
--- a/
examples/ip_pipeline/init.c
+++ b/
examples/ip_pipeline/init.c
@@
-606,29
+606,12
@@
app_link_set_tcp_syn_filter(struct app_params *app, struct app_link_params *cp)
}
}
}
}
-static int
-app_link_is_virtual(struct app_link_params *p)
-{
- uint32_t pmd_id = p->pmd_id;
- struct rte_eth_dev *dev = &rte_eth_devices[pmd_id];
-
- if (dev->dev_type == RTE_ETH_DEV_VIRTUAL)
- return 1;
-
- return 0;
-}
-
void
app_link_up_internal(struct app_params *app, struct app_link_params *cp)
{
uint32_t i;
int status;
void
app_link_up_internal(struct app_params *app, struct app_link_params *cp)
{
uint32_t i;
int status;
- if (app_link_is_virtual(cp)) {
- cp->state = 1;
- return;
- }
-
/* For each link, add filters for IP of current link */
if (cp->ip != 0) {
for (i = 0; i < app->n_links; i++) {
/* For each link, add filters for IP of current link */
if (cp->ip != 0) {
for (i = 0; i < app->n_links; i++) {
@@
-736,11
+719,6
@@
app_link_down_internal(struct app_params *app, struct app_link_params *cp)
uint32_t i;
int status;
uint32_t i;
int status;
- if (app_link_is_virtual(cp)) {
- cp->state = 0;
- return;
- }
-
/* PMD link down */
status = rte_eth_dev_set_link_down(cp->pmd_id);
if (status < 0)
/* PMD link down */
status = rte_eth_dev_set_link_down(cp->pmd_id);
if (status < 0)