Skip to content
Commit 125d8e88 authored by Subbaraya Sundeep's avatar Subbaraya Sundeep Committed by Ruiqiang Hao
Browse files

octeontx2-af: Do not shift more than data type size



commit acfe434634a17d54cedaeed4346d4d0b24e06d9a from
git@git.assembla.com:cavium/WindRiver.linux.git

Right or Left shifting a data type by a shift amount
greater than or equal to size of the data type
results in undefined behavior. Hence avoid it.
Also the argument 'type' of function npc_set_kws
is called with enum header_fields and
enum key_fields hence do not use
enum key_fields as argument.

Change-Id: I637028017c3a92f97d299d37cf0dd0e441c1d882
Signed-off-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/38174


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent a2909f4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment