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

committed by
James Bottomley

parent
dee0586e15
commit
81daf10c76
@@ -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 */
|
||||
|
Reference in New Issue
Block a user