aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_type.h
diff options
context:
space:
mode:
authorShiraz Saleem <shiraz.saleem@intel.com>2017-10-16 15:45:59 -0500
committerDoug Ledford <dledford@redhat.com>2017-10-18 13:28:46 -0400
commit343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6 (patch)
treef323191f93823cfc3a8556121d58a6d7cd3f88e8 /drivers/infiniband/hw/i40iw/i40iw_type.h
parenti40iw: Remove unused structures (diff)
downloadlinux-dev-343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6.tar.xz
linux-dev-343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6.zip
i40iw: Account for IPv6 header when setting MSS
The IPv6 header size is not subtracted from MTU when MSS is set for QPs. Save MTU opposed to MSS in the vsi struct during initialization and calculate the MSS based on IPv4 vs IPv6 connection. Fixes: f27b4746f378 ("i40iw: add connection management code") Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_type.h b/drivers/infiniband/hw/i40iw/i40iw_type.h
index e8d153b963ec..f443f2075d6f 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_type.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_type.h
@@ -460,7 +460,7 @@ struct i40iw_sc_vsi {
struct i40iw_virt_mem ieq_mem;
struct i40iw_puda_rsrc *ieq;
u16 exception_lan_queue;
- u16 mss;
+ u16 mtu;
u8 fcn_id;
bool stats_fcn_id_alloc;
struct i40iw_qos qos[I40IW_MAX_USER_PRIORITY];
@@ -566,7 +566,7 @@ struct i40iw_ccq_cqe_info {
struct i40iw_l2params {
u16 qs_handle_list[I40IW_MAX_USER_PRIORITY];
- u16 mss;
+ u16 mtu;
};
struct i40iw_vsi_init_info {