diff options
author | Karen Xie <kxie@chelsio.com> | 2015-04-10 23:57:12 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-05-25 18:46:24 +0300 |
commit | 81daf10c76770ef9fbb59f4d024f67517edf21d3 (patch) | |
tree | 3268a415562369642fe5bfedbfe223edf1759e5b /drivers/scsi/cxgbi/libcxgbi.h | |
parent | dee0586e15d5d5796dd76bdc0ecfb7df7c5ee1c8 (diff) | |
download | linux-81daf10c76770ef9fbb59f4d024f67517edf21d3.tar.xz |
cxgbi: use per-connection link-speed dependent send/recv windows
For adapters supporting both 10G and 40G use per-connection send/recv window
and calculate the size based on the link speed.
Signed-off-by: Karen Xie <kxie@chelsio.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.h')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index aba1af720df6..f89fad00504f 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h @@ -234,6 +234,8 @@ struct cxgbi_sock { u32 snd_nxt; u32 snd_una; u32 write_seq; + u32 snd_win; + u32 rcv_win; }; /* @@ -540,8 +542,6 @@ struct cxgbi_device { struct iscsi_transport *itp; unsigned int pfvf; - unsigned int snd_win; - unsigned int rcv_win; unsigned int rx_credit_thres; unsigned int skb_tx_rsvd; unsigned int skb_rx_extra; /* for msg coalesced mode */ |