summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx4/en_port.h
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2012-04-04 21:33:25 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-05 05:08:03 -0400
commite5395e92a470769d67369c002a41e59619f5214b (patch)
tree2fd6a4d09c6e4514856f8e4762fe8ed301b8c9b5 /drivers/net/ethernet/mellanox/mlx4/en_port.h
parent0e98b523c4a4119cbd17e58dff385cc329064694 (diff)
net/mlx4_core: set port QoS attributes
Adding QoS firmware commands: - mlx4_en_SET_PORT_PRIO2TC - set UP <=> TC - mlx4_en_SET_PORT_SCHEDULER - set promised BW, max BW and PG number Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_port.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_port.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_port.h b/drivers/net/ethernet/mellanox/mlx4/en_port.h
index 6934fd7e66ed..745090b49d9e 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_port.h
+++ b/drivers/net/ethernet/mellanox/mlx4/en_port.h
@@ -39,6 +39,8 @@
#define SET_PORT_PROMISC_SHIFT 31
#define SET_PORT_MC_PROMISC_SHIFT 30
+#define MLX4_EN_NUM_TC 8
+
#define VLAN_FLTR_SIZE 128
struct mlx4_set_vlan_fltr_mbox {
__be32 entry[VLAN_FLTR_SIZE];