aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2014-06-06 21:40:43 +0530
committerDavid S. Miller <davem@davemloft.net>2014-06-10 22:49:54 -0700
commit92e7ae71726ca9e16a8a88ebeee14eb5177575a1 (patch)
tree5dc54ac594b4e1a50c90f38518d16b18269030a4 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentiw_cxgb4: Allocate and use IQs specifically for indirect interrupts (diff)
downloadlinux-dev-92e7ae71726ca9e16a8a88ebeee14eb5177575a1.tar.xz
linux-dev-92e7ae71726ca9e16a8a88ebeee14eb5177575a1.zip
iw_cxgb4: Choose appropriate hw mtu index and ISS for iWARP connections
Select the appropriate hw mtu index and initial sequence number to optimize hw memory performance. Add new cxgb4_best_aligned_mtu() which allows callers to provide enough information to be used to [possibly] select an MTU which will result in the TCP Data Segment Size (AKA Maximum Segment Size) to be an aligned value. If an RTR message exhange is required, then align the ISS to 8B - 1 + 4, so that after the SYN the send seqno will align on a 4B boundary. The RTR message exchange will leave the send seqno aligned on an 8B boundary. If an RTR is not required, then align the ISS to 8B - 1. The goal is to have the send seqno be 8B aligned when we send the first FPDU. Based on original work by Casey Leedom <leeedom@chelsio.com> and Steve Wise <swise@opengridcomputing.com> Signed-off-by: Casey Leedom <leedom@chelsio.com> 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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
0 files changed, 0 insertions, 0 deletions