]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4/iw_cxgb4: TOS support
authorHariprasad S <hariprasad@chelsio.com>
Fri, 5 Feb 2016 06:13:30 +0000 (11:43 +0530)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:10:14 +0000 (17:10 -0500)
commit8e39d5bb17f2ffd2fb583eddcb13d0398eef9d7f
treea2866c9ab9e464cfa91a9962b80904e5ab369a3c
parentf274d06e124cd3d099d4154f1eb10a3d87867dc3
cxgb4/iw_cxgb4: TOS support

This series provides support for iWARP applications to specify a TOS
value and have that map to a VLAN Priority for iw_cxgb4 iWARP connections.

In iw_cxgb4, when allocating an L2T entry, pass the skb_priority based
on the tos value in the cm_id. Also pass the correct tos value during
connection setup so the passive side gets the client's desired tos.
When sending the FLOWC work request to FW, if the egress device is
in a vlan, then use the vlan priority bits as the scheduling class.
This allows associating RDMA connections with scheduling classes to
provide traffic shaping per flow.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h