]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: cn10k: Fix error return code in otx2_set_flowkey_cfg()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 25 Aug 2021 06:34:47 +0000 (14:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:44:50 +0000 (10:44 +0100)
commit618a8eb4c7137e145d7d1c5975849cd0b24ef4ec
tree8b91c477e3ccdd8087924ab7d415ade844bb6362
parent5a90bc5e1c2ecbec1375a83a20756eb196612b57
octeontx2-pf: cn10k: Fix error return code in otx2_set_flowkey_cfg()

If otx2_mbox_get_rsp() fails, otx2_set_flowkey_cfg() need return an
error code.

Fixes: 83f73e98077c ("octeontx2-pf: Fix algorithm index in MCAM rules with RSS action")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c