From: Michael Chan <mchan@broadcom.com> Date: 2016-01-28 08:11:23
3 small bug fix patches for net.
Michael Chan (3):
bnxt_en: Ring free response from close path should use completion ring
bnxt_en: Exclude rx_drop_pkts hw counter from the stack's rx_dropped
counter.
bnxt_en: Fix crash in bnxt_free_tx_skbs() during tx timeout.
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--
1.8.3.1
From: Michael Chan <mchan@broadcom.com> Date: 2016-01-28 08:11:25
The ring index j is not wrapped properly at the end of the ring, causing
it to reference pointers past the end of the ring. For proper loop
termination and to access the ring properly, we need to increment j and
mask it before referencing the ring entry.
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
From: Michael Chan <mchan@broadcom.com> Date: 2016-01-28 08:11:25
This hardware counter is misleading as it counts dropped packets that
don't match the hardware filters for unicast/broadcast/multicast. We
will still report this counter in ethtool -S for diagnostics purposes.
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 --
1 file changed, 2 deletions(-)
From: Michael Chan <mchan@broadcom.com> Date: 2016-01-28 08:11:26
From: Prashant Sreedharan <redacted>
Use completion ring for ring free response from firmware. The response
will be the last entry in the ring and we can free the ring after getting
the response. This will guarantee no spurious DMA to freed memory.
Signed-off-by: Prashant Sreedharan <redacted>
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)