]> 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)
commita77cdf753e1bfbdb379e497ac084465871be6e79
treef323191f93823cfc3a8556121d58a6d7cd3f88e8
parenta4e829d6c56895e757a736e73be6d4e0ac3eee98
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: 476cbc12eac8 ("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