Skip to content

Commit

Permalink
nvnetdrv: Soft error if framing error only
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 authored and thrimbor committed Dec 29, 2024
1 parent 6e8f425 commit 19195a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/net/nvnetdrv/nvnetdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void nvnetdrv_handle_rx_irq (void)
goto release_packet;
}

if (!(flags & NV_RX_ERROR) || (flags & NV_RX_FRAMINGERR)) {
if ((flags & NV_RX_ERROR_MASK) == 0) {
uint16_t packet_length = rx_packet->length;

if (flags & NV_RX_SUBTRACT1) {
Expand Down
3 changes: 2 additions & 1 deletion lib/net/nvnetdrv/nvnetdrv_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,5 @@ enum {
#define NV_RX_OVERFLOW (1 << 12)
#define NV_RX_FRAMINGERR (1 << 13)
#define NV_RX_ERROR (1 << 14)
#define NV_RX_AVAIL (1 << 15)
#define NV_RX_AVAIL (1 << 15)
#define NV_RX_ERROR_MASK (NV_RX_ERROR1|NV_RX_ERROR2|NV_RX_ERROR3|NV_RX_ERROR4|NV_RX_CRCERR|NV_RX_OVERFLOW)

0 comments on commit 19195a0

Please sign in to comment.