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>
This commit is contained in:

committed by
David S. Miller

parent
6102c66eeb
commit
ba9cee6aa6
@@ -1021,6 +1021,8 @@ struct cpl_l2t_write_req {
|
||||
#define L2T_W_NOREPLY_V(x) ((x) << L2T_W_NOREPLY_S)
|
||||
#define L2T_W_NOREPLY_F L2T_W_NOREPLY_V(1U)
|
||||
|
||||
#define CPL_L2T_VLAN_NONE 0xfff
|
||||
|
||||
struct cpl_l2t_write_rpl {
|
||||
union opcode_tid ot;
|
||||
u8 status;
|
||||
|
@@ -561,6 +561,7 @@ enum fw_flowc_mnem {
|
||||
FW_FLOWC_MNEM_SNDBUF,
|
||||
FW_FLOWC_MNEM_MSS,
|
||||
FW_FLOWC_MNEM_TXDATAPLEN_MAX,
|
||||
FW_FLOWC_MNEM_SCHEDCLASS = 11,
|
||||
};
|
||||
|
||||
struct fw_flowc_mnemval {
|
||||
|
Reference in New Issue
Block a user