aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
diff options
context:
space:
mode:
authorAriel Elior <ariele@broadcom.com>2012-01-26 01:01:45 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-26 13:39:51 -0500
commit8d7b02783bc2b05974f6e47c2be8157f3a9cd89e (patch)
tree09df8af0cc714abb5e3e8df907e1b2eec1ecf84c /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
parentd6cb17d5f8015717f6963d24d52b06292a4cb40a (diff)
bnx2x: Support Queue Per Cos in 5771xx devices
Enable the use of up to three hardware queues for transmission. The queues are always dequed round robin (i.e. strict priority, PFC and ETS are not supported). This does allow the allocation of a seperate HW queue for low volume, high priority traffic which will be serviced more promptly. Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
index bf27c54ff2e0..0dd22bb44f0d 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
@@ -984,10 +984,11 @@ static inline int bnx2x_func_start(struct bnx2x *bp)
984 /* Function parameters */ 984 /* Function parameters */
985 start_params->mf_mode = bp->mf_mode; 985 start_params->mf_mode = bp->mf_mode;
986 start_params->sd_vlan_tag = bp->mf_ov; 986 start_params->sd_vlan_tag = bp->mf_ov;
987 if (CHIP_IS_E1x(bp)) 987
988 start_params->network_cos_mode = OVERRIDE_COS; 988 if (CHIP_IS_E2(bp) || CHIP_IS_E3(bp))
989 else
990 start_params->network_cos_mode = STATIC_COS; 989 start_params->network_cos_mode = STATIC_COS;
990 else /* CHIP_IS_E1X */
991 start_params->network_cos_mode = FW_WRR;
991 992
992 return bnx2x_func_state_change(bp, &func_params); 993 return bnx2x_func_state_change(bp, &func_params);
993} 994}