From 78c896b3b3127515478090c19447e27dc406427e Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Mon, 18 Nov 2019 06:59:50 +0000 Subject: TLDKv2 Signed-off-by: Jianfeng Tan Signed-off-by: Jielong Zhou Signed-off-by: Jian Zhang Signed-off-by: Chen Zhao Change-Id: I55c39de4c6cd30f991f35631eb507f770230f08e --- examples/Makefile | 2 +- examples/l4fwd/main.c | 1 - examples/l4fwd/port.h | 11 ----------- 3 files changed, 1 insertion(+), 13 deletions(-) (limited to 'examples') 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, -- cgit 1.2.3-korg