]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: use correct tcp hdr length when packet is encapsulated
authorRonak Doshi <doshir@vmware.com>
Mon, 10 Aug 2020 16:55:55 +0000 (09:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2020 19:09:38 +0000 (12:09 -0700)
commit0f1872bdb3508adcfe39b5ebe09fef1c54947b34
treed068680dba9e82d89b598e7445e97dcf5c5fb28d
parentb03ac4e403143c5de4a78463cd26f34b41f868b4
vmxnet3: use correct tcp hdr length when packet is encapsulated

Commit 72efc4f3621c ("vmxnet3: add geneve and vxlan tunnel offload
support") added support for encapsulation offload. However, while
calculating tcp hdr length, it does not take into account if the
packet is encapsulated or not.

This patch fixes this issue by using correct reference for inner
tcp header.

Fixes: 72efc4f3621c ("vmxnet3: add geneve and vxlan tunnel offload support")
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c