From 6fb0694d16ec45c06b38596d37dc7dfe718561a2 Mon Sep 17 00:00:00 2001 From: Hawker Date: Fri, 27 Nov 2020 15:36:35 +0800 Subject: [PATCH] update comments --- lib/ff_dpdk_if.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index a53ef29e2..0484f1a37 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -1108,7 +1108,10 @@ ff_dpdk_init(int argc, char **argv) init_clock(); #ifdef FF_FLOW_ISOLATE - //Recommend: using config options replace magic number + //Only give a example using port_id=0, tcp_port= 80. + //Recommend: + //1. init_flow should replace `set_rss_table` in `init_port_start` loop, This can set all NIC's port_id_list instead only 0 device(port_id). + //2. using config options `tcp_port` replace magic number of 80 ret = init_flow(0, 80); if (ret < 0) { rte_exit(EXIT_FAILURE, "init_port_flow failed\n");