Re: [dpdk-dev] [PATCH] net/ice/base: fix mem allocations wrapper

2021-05-07 Thread Zhang, Qi Z
> -Original Message- > From: David Marchand > Sent: Thursday, May 6, 2021 6:07 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Yang, Qiming ; Zhang, Qi Z > ; Yigit, Ferruh ; Lu, Wenzhuo > > Subject: [PATCH] net/ice/base: fix mem allocations wrapper > > This is reported by our internal co

[dpdk-dev] [PATCH] net/ice/base: fix mem allocations wrapper

2021-05-06 Thread David Marchand
This is reported by our internal covscan: 1. dpdk-20.11/drivers/net/ice/base/ice_switch.c:4214: sign_extension: Suspicious implicit sign extension: "s_rule_size" with type "u16" (16 bits, unsigned) is promoted in "num_unicast * s_rule_size" to type "int" (32 bits, signed), then sign-extended to ty