diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2017-10-16 15:45:59 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-18 13:28:46 -0400 |
commit | 343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6 (patch) | |
tree | f323191f93823cfc3a8556121d58a6d7cd3f88e8 /drivers/infiniband/hw/i40iw/i40iw_d.h | |
parent | b0d4f703693aabf727924d1568cc36e1b7484c66 (diff) | |
download | lwn-343d86bd45d2d5770acc8cab2e4c4b4f6595d1f6.tar.gz lwn-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 'drivers/infiniband/hw/i40iw/i40iw_d.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_d.h b/drivers/infiniband/hw/i40iw/i40iw_d.h index 40d474384a4e..17ed45b42df4 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_d.h +++ b/drivers/infiniband/hw/i40iw/i40iw_d.h @@ -73,6 +73,10 @@ #define I40IW_FIRST_NON_PF_STAT 4 +#define I40IW_MTU_TO_MSS_IPV4 40 +#define I40IW_MTU_TO_MSS_IPV6 60 +#define I40IW_DEFAULT_MTU 1500 + #define LS_64_1(val, bits) ((u64)(uintptr_t)val << bits) #define RS_64_1(val, bits) ((u64)(uintptr_t)val >> bits) #define LS_32_1(val, bits) (u32)(val << bits) |