]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: move filter register related macro into proper place
authorVadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Fri, 30 Mar 2018 11:59:47 +0000 (04:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 02:18:16 +0000 (22:18 -0400)
commit0643e043ee4af4f7facaa536ee8eb4424ffbd289
tree564684f76f5b9f64a15b35f83f5acfb6ab35a45a
parent039dc26ecb308e94b6ed348069e77ea8a0fa88dc
net: thunderx: move filter register related macro into proper place

The ThunderX NIC has set of registers which allows to configure
filter policy for ingress packets. There are three possible regimes
of filtering multicasts, broadcasts and unicasts: accept all, reject all
and accept filter allowed only.

Current implementation has enum with all of them and two generic macro
for enabling filtering et all (CAM_ACCEPT) and enabling/disabling
broadcast packets, which also should be corrected in order to represent
register bits properly. All these values are private for driver and
there is no need to â€˜publish’ them via header file.

This commit is to move filtering register manipulation values from
header file into source with explicit assignment of exact register
values to them to be used while register configuring.

Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h