Re: [dpdk-dev] [PATCH v6] examples: fix RSS hash function configuration

2018-07-05 Thread Zhao, MeijuanX


-Original Message-
From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit
Sent: Thursday, July 5, 2018 4:02 AM
To: Jerin Jacob ; Lu, Wenzhuo 
; Wu, Jingjing ; Iremonger, 
Bernard ; Doherty, Declan 
; Chas Williams ; Richardson, Bruce 
; Hunt, David ; Van Haaren, 
Harry ; Dumitrescu, Cristian 
; Ananyev, Konstantin 
; Horton, Remy ; Ori Kam 
; De Lara Guarch, Pablo ; 
Nicolau, Radu ; Akhil Goyal ; 
Kantecki, Tomasz ; Burakov, Anatoly 
; Mcnamara, John ; Li, 
Xiaoyun ; Thomas Monjalon ; Andrew 
Rybchenko 
Cc: dev@dpdk.org; Yigit, Ferruh ; Ma, Liang J 
; Xueming Li ; Pavan Nikhilesh 

Subject: [dpdk-dev] [PATCH v6] 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 
Tested-by: Zhao meijuan< meijuanx.z...@intel.com >;Han yingya< 
yingyax@intel.com >



Re: [dpdk-dev] [PATCH] test: ensure EAL flags autotest works properly on BSD

2018-07-17 Thread Zhao, MeijuanX



-Original Message-
From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov
Sent: Tuesday, July 17, 2018 12:34 AM
To: dev@dpdk.org
Cc: Liu, Yu Y ; Richardson, Bruce 
; Ananyev, Konstantin 
; sta...@dpdk.org
Subject: [dpdk-dev] [PATCH] test: ensure EAL flags autotest works properly on 
BSD

FreeBSD does not support running multiple primary processes concurrently, 
because all DPDK instances will allocate memory from the same place (memory 
provided by contigmem driver).
While it is technically possible to launch a DPDK process using no-shconf 
switch, it will actually corrupt main process'
for the above reason.

Fix EAL flags autotest to not run primary processes unless both no-shconf and 
no-huge are specified.

Cc: sta...@dpdk.org

Signed-off-by: Anatoly Burakov 
Tested-by: Wu, ChangqingX 


Re: [dpdk-dev] [PATCH v2] app/testpmd: fix dcb config failure

2018-08-01 Thread Zhao, MeijuanX



-Original Message-
From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Konstantin Ananyev
Sent: Tuesday, July 31, 2018 10:44 PM
To: dev@dpdk.org; dev@dpdk.org
Cc: Ananyev, Konstantin 
Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix dcb config failure

After adding RSS hash offload check, default rss_hf will fail on devices that 
do not support all bits. This will lead to dcb config failure. The patch fixes 
this issue by reading current valid rss_conf from the device.

Fixes: 8863a1fbfc66 ("ethdev: add supported hash function check")
Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")

Signed-off-by: Konstantin Ananyev 
Tested-by: Han, YingyaX 



Re: [dpdk-dev] [PATCH] eal/bsd: silence not supported error in interrupts

2018-08-02 Thread Zhao, MeijuanX



-Original Message-
From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov
Sent: Friday, July 27, 2018 4:25 PM
To: dev@dpdk.org
Cc: Richardson, Bruce ; tho...@monjalon.net; Wu, 
ChangqingX 
Subject: [dpdk-dev] [PATCH] eal/bsd: silence not supported error in interrupts

Currently, nic_uio driver does not support interrupts, so any attempts to 
install an interrupt handler will fail with a not supported error, which will 
cause an error message that is confusing to the user.

Silence this error by moving it to debug log level, and reword the message to 
avoid containing the word "Error", to avoid triggering DTS test failures [1].

[1] https://git.dpdk.org/tools/dts/tree/tests/
TestSuite_scatter.py?#n110

Fixes: 23150bd8d8a8 ("eal/bsd: add interrupt thread")

Signed-off-by: Anatoly Burakov 
Tested-by: Wu, ChangqingX