diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 2 | ||||
-rw-r--r-- | examples/l4fwd/main.c | 1 | ||||
-rw-r--r-- | examples/l4fwd/port.h | 11 |
3 files changed, 1 insertions, 13 deletions
diff --git a/examples/Makefile b/examples/Makefile index cf13574..9ef8d85 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -21,6 +21,6 @@ endif include $(RTE_SDK)/mk/rte.vars.mk -DIRS-y += l4fwd +#DIRS-y += l4fwd include $(TLDK_ROOT)/mk/tle.subdir.mk diff --git a/examples/l4fwd/main.c b/examples/l4fwd/main.c index 9396403..2e16479 100644 --- a/examples/l4fwd/main.c +++ b/examples/l4fwd/main.c @@ -68,7 +68,6 @@ static char proto_name[3][10] = {"udp", "tcp", ""}; static const struct rte_eth_conf port_conf_default = { .rxmode = { - .offloads = DEV_RX_OFFLOAD_VLAN_STRIP, }, }; diff --git a/examples/l4fwd/port.h b/examples/l4fwd/port.h index a154844..67ca19a 100644 --- a/examples/l4fwd/port.h +++ b/examples/l4fwd/port.h @@ -177,21 +177,10 @@ port_init(struct netbe_port *uprt, uint32_t proto) } port_conf = port_conf_default; - if ((uprt->rx_offload & RX_CSUM_OFFLOAD) != 0) { - RTE_LOG(ERR, USER1, "%s(%u): enabling RX csum offload;\n", - __func__, uprt->id); - port_conf.rxmode.offloads |= uprt->rx_offload & RX_CSUM_OFFLOAD; - } - port_conf.rxmode.max_rx_pkt_len = uprt->mtu + ETHER_CRC_LEN; - if (port_conf.rxmode.max_rx_pkt_len > ETHER_MAX_LEN) - port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME; - rc = update_rss_conf(uprt, &dev_info, &port_conf, proto); if (rc != 0) return rc; - port_conf.txmode.offloads = uprt->tx_offload; - rc = rte_eth_dev_configure(uprt->id, uprt->nb_lcore, uprt->nb_lcore, &port_conf); RTE_LOG(NOTICE, USER1, |