qed: Add Multi-TC RoCE support
authorDenis Bolotin <denis.bolotin@cavium.com>
Tue, 7 Aug 2018 12:48:10 +0000 (15:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 20:22:10 +0000 (13:22 -0700)
commit61be82b087e201511bc53cf614f733dee1f47344
treef2f9f5cdfecc816dfe2b0d9247f381ebcffb3d72
parentc4259dda171920bf25f92756aa5a5fd17bf7e19e
qed: Add Multi-TC RoCE support

RoCE qps use a pair of physical queues (pq) received from the Queue Manager
(QM) - an offload queue (OFLD) and a low latency queue (LLT). The QM block
creates a pq for each TC, and allows RoCE qps to ask for a pq with a
specific TC. As a result, qps with different VLAN priorities can be mapped
to different TCs, and employ features such as PFC and ETS.

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_roce.c