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)
commitba9cee6aa67dd67ad1bf121ee20efc00241f086f
tree49ec53197bccecfb0af71b20737e124f9f02622b
parent6102c66eeb7497e4462c896074315635807758d4
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