Skip to content

Commit 50727db

Browse files
authored
Merge pull request #882 from Clcanny/dev
Add support for custom install prefix
2 parents 7555098 + 01e6d33 commit 50727db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ C=${TOPDIR}/freebsd/contrib/ck/include
1515
MACHINE_INCLUDES_ROOT:=${CURDIR}/machine_include
1616
OVERRIDE_INCLUDES_ROOT:=${CURDIR}/include
1717
X86_INCLUDES=0
18-
PREFIX=/usr/local
18+
PREFIX?=/usr/local
1919
PREFIX_LIB=${PREFIX}/lib
20-
PREFIX_INCLUDE=/usr/local/include
21-
PREFIX_BIN=/usr/local/bin
20+
PREFIX_INCLUDE=${PREFIX}/include
21+
PREFIX_BIN=${PREFIX}/bin
2222
F-STACK_CONF=/etc/f-stack.conf
2323
F-STACK_VERSION=1.24
2424
TGT_OS=$(shell uname)

lib/ff_dpdk_if.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ init_port_start(void)
656656
rte_memcpy(pconf->mac,
657657
addr.addr_bytes, RTE_ETHER_ADDR_LEN);
658658

659-
if (dev_info.hash_key_size > 0) {
660-
/* Set RSS mode */
659+
/* Set RSS mode */
660+
if (dev_info.flow_type_rss_offloads) {
661661
uint64_t default_rss_hf = RTE_ETH_RSS_PROTO_MASK;
662662
port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS;
663663
port_conf.rx_adv_conf.rss_conf.rss_hf = default_rss_hf;

0 commit comments

Comments
 (0)