ANDROID: fix a bug in quota2
If quota is precisely equal to skb->len then a notification
would not be sent due to immediately hitting 0.
This fixes that, and takes the opportunity to slightly clean
up the code and make quota behave more correctly for packet mode
as well.
Test: builds, net tests continue to pass
Bug: 164336990
Signed-off-by:
Maciej Żenczykowski <maze@google.com>
Change-Id: I78a11b48794496255513a6226c0469d809d7aa56
-
mentioned in commit 5b38a2ff
-
mentioned in commit cb996043
-
mentioned in commit ee6168d8
-
mentioned in commit 60f6534a
-
mentioned in commit 0803cc8b
-
mentioned in commit c39f7ce9
-
mentioned in commit dc9ebce3
-
mentioned in commit c9867885
-
mentioned in commit 594e79cd
-
mentioned in commit 8f42edc5
-
mentioned in commit b81daae6
-
mentioned in commit a6608d14
-
mentioned in commit 59788b1e
-
mentioned in commit d50ac40a
-
mentioned in commit 14ddb392
-
mentioned in commit cce63eda
-
mentioned in commit 184536d0
-
mentioned in commit dca7c526
-
mentioned in commit 5d425b0b
-
mentioned in commit f3b262d8
-
mentioned in commit ca72f49a
-
mentioned in commit 0d7a0c24
-
mentioned in commit eb651ca7
-
mentioned in commit e9262010
-
mentioned in commit 1dd7e2d0
-
mentioned in commit dee84816
-
mentioned in commit 95a8ae4a
-
mentioned in commit 4997c4fe
-
mentioned in commit 3deb3be1
-
mentioned in commit 2ec84e06
-
mentioned in commit 1f826540
-
mentioned in commit 2160d88a
-
mentioned in commit f6bf76f7
-
mentioned in commit 982dad26
-
mentioned in commit 938b00db
-
mentioned in commit 1f238e8b
-
mentioned in commit 3990d634
-
mentioned in commit 0b36cc4d
-
mentioned in commit ac0f391a
-
mentioned in commit e0a14a79
-
mentioned in commit 62cb7381
-
mentioned in commit aed89317
-
mentioned in commit 2e90131e
-
mentioned in commit 9f95b856
-
mentioned in commit 8382501f
-
mentioned in commit 1732c37a