summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw.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.h
parentb0d4f703693aabf727924d1568cc36e1b7484c66 (diff)
downloadop-kernel-dev-343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6.zip
op-kernel-dev-343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6.tar.gz
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 'drivers/infiniband/hw/i40iw/i40iw.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw.h b/drivers/infiniband/hw/i40iw/i40iw.h
index a65e4cbd..4ae9131 100644
--- a/drivers/infiniband/hw/i40iw/i40iw.h
+++ b/drivers/infiniband/hw/i40iw/i40iw.h
@@ -119,9 +119,6 @@
#define I40IW_CQP_COMPL_SQ_WQE_FLUSHED 3
#define I40IW_CQP_COMPL_RQ_SQ_WQE_FLUSHED 4
-#define I40IW_MTU_TO_MSS 40
-#define I40IW_DEFAULT_MSS 1460
-
struct i40iw_cqp_compl_info {
u32 op_ret_val;
u16 maj_err_code;
OpenPOWER on IntegriCloud