diff options
author | Shrikrishna Khare <skhare@vmware.com> | 2016-06-08 07:40:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-10 00:15:11 -0700 |
commit | 50219538ffc0493a2b451a3aa0191138ef8bfe9d (patch) | |
tree | cacdcb6ec548bf7e07f5ad84cc6ad9070b814e2b /drivers/net/vmxnet3/vmxnet3_drv.c | |
parent | 719c44d340beeecd22cbda91b00ef55585b3c1a0 (diff) | |
download | linux-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.c | 2 |
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; |