[spp] [PATCH 1/7] spp_nfv: change type of port_id to uint16_t

Ferruh Yigit ferruh.yigit at intel.com
Thu Dec 7 19:08:39 CET 2017


On 12/6/2017 12:18 AM, ogawa.yasufumi at lab.ntt.co.jp wrote:
> From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
> 
> In SPP, type of port_id is int while it is changed from uint8_t to
> uint16_t in DPDK 17.11. It causes compile errors for incompatible
> pointer type.
> 
> In addition, SPP expects negative value of port_id if it is
> unassigned or invalid case. It is also a problem because comparing
> uint16_t with negative value is not allowed.
> 
> This update is to change type of port_id and its validation. PORT_RESET
> used for unassigned ports is changed from -99 to UINT16_MAX to avoid
> negative value.
> 
> Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

Series applied, thanks.


More information about the spp mailing list