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:Subbaraya Sundeep <sbhatta@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/38174 Tested-by:
sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Reviewed-by:
Sunil Kovvuri Goutham <Sunil.Goutham@cavium.com> Signed-off-by:
Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Loading
Please register or sign in to comment