[spp] [PATCH] spp_vf: fix unexpected tx port is shown in status

Ferruh Yigit ferruh.yigit at intel.com
Wed Aug 22 11:37:43 CEST 2018


On 8/9/2018 3:24 AM, Yasufumi Ogawa wrote:
> On 2018/07/30 14:10, x-fn-spp at sl.ntt-tx.co.jp wrote:
>> From: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
>>
>> Unexpected tx port is shown without adding it because of bug of status
>> command. Here is an example.
>>
>>    spp > sec 1;component start fwd1 12 forward
>>    spp > sec 1;port add ring:0 rx fwd1
>>    spp > sec 1;flush
>>    spp > sec 1;status
>>    { "results": [ { "result": "success" } ],"info": { "client-id": 2,
>>    ...
>>    "tx_port": [ { "port": "phy:0", "vlan": { "operation": # Here
>>    ...
>>
>> It is because status command wrongly assumes the number of tx port is
>> equal to rx if the number of rx port is greater than zero. To fix the
>> problem, add 'num_tx' in struct forward_path to hold the number exactly.
> Thanks for your update.
> 
> Acked-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

Applied, thanks.


More information about the spp mailing list