]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Fix missing check bugs in rvu_cgx.c
authorYingjie Wang <wangyingjie55@126.com>
Fri, 15 Jan 2021 14:10:04 +0000 (06:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 19:36:47 +0000 (11:36 -0800)
commit5e57b9196ee362c7e0c11f986a85389f54ca2f57
tree2d4a0dad21bbde8cb1910168ef89319fb2b34e36
parent58064f6d91dc442e433d15da905e2c78fccce960
octeontx2-af: Fix missing check bugs in rvu_cgx.c

In rvu_mbox_handler_cgx_mac_addr_get()
and rvu_mbox_handler_cgx_mac_addr_set(),
the msg is expected only from PFs that are mapped to CGX LMACs.
It should be checked before mapping,
so we add the is_cgx_config_permitted() in the functions.

Fixes: 43042caae89f ("octeontx2-af: Support for MAC address filters in CGX")
Signed-off-by: Yingjie Wang <wangyingjie55@126.com>
Reviewed-by: Geetha sowjanya<gakula@marvell.com>
Link: https://lore.kernel.org/r/1610719804-35230-1-git-send-email-wangyingjie55@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c