iw_cxgb4: pass window scale in flowc work request
authorPotnuri Bharat Teja <bharat@chelsio.com>
Fri, 3 Aug 2018 12:56:47 +0000 (18:26 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Aug 2018 15:54:55 +0000 (09:54 -0600)
commit2e51e45cf613491a2bd9d757f04e36d8617be5ac
tree1fee1faaf4de1c7444a80ae123fdece02c8b0dc7
parent0dfe452241f4904de497aef01ad2f609ccb9be90
iw_cxgb4: pass window scale in flowc work request

This will allow FW to not send more data to TP (which would then need to
be buffered). Pass the negotiated TCP window scale to FW in the FLOWC WR.

Also refactor send_flowc() a bit to clean it up.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h