[spp] [PATCH v3] spp_vf: fix initializing bug of forwarder
Ferruh Yigit
ferruh.yigit at intel.com
Wed Aug 22 11:42:01 CEST 2018
On 8/9/2018 5:25 AM, Yasufumi Ogawa wrote:
>> From: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
>>
>> clear_forward_info() always initializes path[0] of g_forward_info[id].
>> It is a bug and causes stopping forwarding accidentally if path[0] is
>> referenced by spp_forward().
>>
>> This patch changes initializing as path[info->upd_index] instead of 0.
>> It also includes following refactoring
>> - using local vars to be simple
>> - replace clear_forward_info() by memset
> Thanks!
>
> Acked-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
>>
>> Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
>> Signed-off-by: Naoki Takada <takada.naoki at lab.ntt.co.jp>
Applied, thanks.
More information about the spp
mailing list