net/vmxnet3: ignore empty segments in reception
authorDidier Pallard <didier.pallard@6wind.com>
Wed, 28 Mar 2018 15:43:48 +0000 (17:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 16:34:41 +0000 (17:34 +0100)
commit595d08d10506c5193062d37612fc5629435d2db5
tree5ed45001e787e27acdea71037e1ec21c0a8f766e
parentae2705b80d4177d050950af687708c7138bb6b6e
net/vmxnet3: ignore empty segments in reception

When several TCP fragments are contained in a packet that is only one mbuf
segment long, vmxnet3 receives an empty segment following first one, that
contains offload information. In current version, this segment is
propagated as is to upper application.
Remove those empty segments directly when receiving buffers, they may
generate unneeded extra processing in the upper application.

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Acked-by: Yong Wang <yongwang@vmware.com>
drivers/net/vmxnet3/vmxnet3_rxtx.c