]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Account for IPv6 header when setting MSS
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 16 Oct 2017 20:45:59 +0000 (15:45 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:28:46 +0000 (13:28 -0400)
commitff6ebcf533a3249b5f3ee9a0b4efc6ffe462b891
treef323191f93823cfc3a8556121d58a6d7cd3f88e8
parent59ebefdf297c5d8923d80dfdc9a9333ff1567c38
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: 11419b4d0754 ("i40iw: add connection management code")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_ctrl.c
drivers/infiniband/hw/i40iw/i40iw_d.h
drivers/infiniband/hw/i40iw/i40iw_main.c
drivers/infiniband/hw/i40iw/i40iw_puda.c
drivers/infiniband/hw/i40iw/i40iw_type.h