Skip to content

Commit 600443a

Browse files
yangbolu1991nashif
authored andcommitted
drivers: ethernet: nxp_imx_netc: support receiving more types frames
Supported receiving more types frames. One was TX timestamp response frame and the other one is RX timestamped frame which were for switch port. Signed-off-by: Yangbo Lu <[email protected]>
1 parent ee6b20e commit 600443a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/ethernet/nxp_imx_netc/eth_nxp_imx_netc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ static int netc_eth_rx(const struct device *dev)
9696
goto out;
9797
}
9898

99-
if (result != kStatus_Success) {
99+
if (result != kStatus_NETC_RxTsrResp &&
100+
result != kStatus_NETC_RxHRNotZeroFrame &&
101+
result != kStatus_Success) {
100102
LOG_ERR("Error on received frame");
101103
ret = -EIO;
102104
goto out;

0 commit comments

Comments
 (0)