net/qede/base: add new macro for CMT mode
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:51:28 +0000 (18:51 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commitc0845c33ffb1954c1a8c5f6244b7984631cf9706
tree1c5c04f83730e0478be45396260266f95fd76ccb
parentc83cbe7130656a65b16078bfb1c008f9a15a4a9b
net/qede/base: add new macro for CMT mode

- Add ECORE_IS_CMT macro (CMT: couple mode teaming) and use that in all the
places where there are checks for number of HW functions per device > 1.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore.h
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_sriov.c
drivers/net/qede/qede_ethdev.c
drivers/net/qede/qede_fdir.c
drivers/net/qede/qede_main.c