net/vmxnet3: skip empty segments in transmission
authorDidier Pallard <didier.pallard@6wind.com>
Wed, 28 Mar 2018 15:43:49 +0000 (17:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 16:34:41 +0000 (17:34 +0100)
commitd863f19efa4f8b4878221846f17e2d04fe5a7457
treefa984e92c4743cef479f4e4e1061d34e30421647
parent595d08d10506c5193062d37612fc5629435d2db5
net/vmxnet3: skip empty segments in transmission

Packets containing empty segments are dropped by hypervisor, prevent
this case by skipping empty segments in transmission.
Also drop empty mbufs to be sure that at least one segment is transmitted
for each mbuf.

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