Re: [Pv-drivers] [PATCH net v2] vmxnet3: segCnt can be 1 for LRO packets

From: Shrikrishna Khare
Date: Wed Jun 08 2016 - 10:43:21 EST




On Wed, 8 Jun 2016, Thomas Hellstrom wrote:

> > mss = rcdlro->mss;
> > if (unlikely(segCnt <= 1))
> > segCnt = 0;
>
> Based on this code, it looks like it can handle the case without taking
> down the kernel completely, so instead of a
> "BUG_ON", would it make sense with a WARN_ON_ONCE() or WARN_ON()?

Thanks for the review Thomas. I fixed the code to use WARN_ON_ONCE. Sent
out revised patch.