summaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3/vmxnet3_drv.c
diff options
context:
space:
mode:
authorShrikrishna Khare <skhare@vmware.com>2016-06-08 07:40:53 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-10 00:15:11 -0700
commit50219538ffc0493a2b451a3aa0191138ef8bfe9d (patch)
treecacdcb6ec548bf7e07f5ad84cc6ad9070b814e2b /drivers/net/vmxnet3/vmxnet3_drv.c
parent719c44d340beeecd22cbda91b00ef55585b3c1a0 (diff)
downloadlinux-stable-50219538ffc0493a2b451a3aa0191138ef8bfe9d.tar.gz
linux-stable-50219538ffc0493a2b451a3aa0191138ef8bfe9d.tar.bz2
linux-stable-50219538ffc0493a2b451a3aa0191138ef8bfe9d.zip
vmxnet3: segCnt can be 1 for LRO packets
The device emulation may send segCnt of 1 for LRO packets. Signed-off-by: Shrikrishna Khare <skhare@vmware.com> Signed-off-by: Jin Heo <heoj@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_drv.c')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index db8022ae415b..08885bc8d6db 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -1369,7 +1369,7 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq,
rcdlro = (struct Vmxnet3_RxCompDescExt *)rcd;
segCnt = rcdlro->segCnt;
- BUG_ON(segCnt <= 1);
+ WARN_ON_ONCE(segCnt == 0);
mss = rcdlro->mss;
if (unlikely(segCnt <= 1))
segCnt = 0;