examples: fix RSS hash function configuration
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Jul 2018 20:02:21 +0000 (21:02 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 5 Jul 2018 13:46:48 +0000 (15:46 +0200)
commit4f5701f28bd41cbe582a03af4d82d1fa6c1cab91
treea1193884f6c8657678b2305135bd0eeae571ecd2
parent69bce062132bd2b4a943fafbb710215a7999d198
examples: fix RSS hash function configuration

ethdev layer introduced checks for application requested RSS hash
functions and returns error for ones unsupported by hardware

This check breaks some sample applications which blindly configures
RSS hash functions without checking underlying hardware support.

Updated examples to mask out unsupported RSS has functions during device
configuration.
Prints a log if configuration values updated by this check.

Fixes: aa1a6d87f15d ("ethdev: force RSS offload rules again")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Meijuan Zhao <meijuanx.zhao@intel.com>
Tested-by: Yingya Han <yingyax.han@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
19 files changed:
app/test-eventdev/test_perf_common.c
app/test-eventdev/test_pipeline_common.c
app/test-pmd/cmdline.c
examples/bond/main.c
examples/distributor/main.c
examples/eventdev_pipeline/main.c
examples/ip_pipeline/link.c
examples/ip_reassembly/main.c
examples/ipsec-secgw/ipsec-secgw.c
examples/l3fwd-acl/main.c
examples/l3fwd-power/main.c
examples/l3fwd-vf/main.c
examples/l3fwd/main.c
examples/load_balancer/init.c
examples/multi_process/symmetric_mp/main.c
examples/performance-thread/l3fwd-thread/main.c
examples/qos_meter/main.c
examples/vmdq_dcb/main.c
lib/librte_ethdev/rte_ethdev.h