linux_dsm_epyc7002/drivers/net/ethernet/cavium/thunder
Yury Norov b45ceb406e net: thunderx: nicvf_queues: nivc_*_intr: remove duplication
The same switch-case repeates for nivc_*_intr functions.
In this patch it is moved to a helper nicvf_int_type_to_mask().

By the way:
 - Unneeded write to NICVF register dropped if int_type is unknown.
 - netdev_dbg() is used instead of netdev_err().

Signed-off-by: Yury Norov <yury.norov@auriga.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Acked-by: Vadim Lomovtsev <Vadim.Lomovtsev@caiumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-07 13:40:01 -05:00
..
Makefile net: Adding support for Cavium ThunderX network controller 2015-05-27 14:19:44 -04:00
nic_main.c net: thunderx: Enable BGX LMAC's RX/TX only after VF is up 2015-12-02 15:58:50 -05:00
nic_reg.h net: thunderx: Incorporate pass2 silicon CPI index configuration changes 2015-10-25 18:13:02 -07:00
nic.h net: thunderx: Set CQ timer threshold properly 2015-12-02 15:58:50 -05:00
nicvf_ethtool.c net: thunderx: Switchon carrier only upon interface link up 2015-12-02 15:58:50 -05:00
nicvf_main.c net: thunderx: Switchon carrier only upon interface link up 2015-12-02 15:58:50 -05:00
nicvf_queues.c net: thunderx: nicvf_queues: nivc_*_intr: remove duplication 2015-12-07 13:40:01 -05:00
nicvf_queues.h net: thunderx: Set CQ timer threshold properly 2015-12-02 15:58:50 -05:00
q_struct.h net: Adding support for Cavium ThunderX network controller 2015-05-27 14:19:44 -04:00
thunder_bgx.c net: thunderx: Enable BGX LMAC's RX/TX only after VF is up 2015-12-02 15:58:50 -05:00
thunder_bgx.h net: thunderx: Enable BGX LMAC's RX/TX only after VF is up 2015-12-02 15:58:50 -05:00