]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4/iw_cxgb4: TOS support
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 5 Feb 2016 06:13:30 +0000 (11:43 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 12:13:23 +0000 (07:13 -0500)
commitfab7863e460480ae6ac103b3caf542219c3dc9c0
tree49ec53197bccecfb0af71b20737e124f9f02622b
parente812aa203000d7a02f203590add7393dc9f9ecc1
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: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/cxgb4/cm.c
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h