# Re: \[PATCH net-next v4 0/2\] bnxt: add rx discards stats for oom and netpool

- From: Edwin Peer \<hidden\>
- Date: 2021-08-27 19:00:46 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/08/11210354
- Thread: https://ratatoskr.run/netdev/2021/08/11210327/t.md

```text
Reviewed-by: Edwin Peer <redacted>

Regards,
Edwin Peer


On Fri, Aug 27, 2021 at 8:27 AM Jakub Kicinski [ref] wrote:
>
> Drivers should avoid silently dropping frames. This set adds two
> stats for previously unaccounted events to bnxt - packets dropped
> due to allocation failures and packets dropped during emergency
> ring polling.
>
> v4: drop patch 1, not needed after simplifications
>
> Jakub Kicinski (2):
>   bnxt: count packets discarded because of netpoll
>   bnxt: count discards due to memory allocation errors
>
>  drivers/net/ethernet/broadcom/bnxt/bnxt.c      | 18 +++++++++++++++++-
>  drivers/net/ethernet/broadcom/bnxt/bnxt.h      |  2 ++
>  .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c  |  4 ++++
>  3 files changed, 23 insertions(+), 1 deletion(-)
>
> --
> 2.31.1
>
```
