]> 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)
commit4a9e294a7bee5131ee1f4a7a84a18ae03ba967d8
tree49ec53197bccecfb0af71b20737e124f9f02622b
parent872233d5d9c8241a3a0e23b5a5f7a7b1d50e7ab1
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