From: stsp Date: Thu, 29 Feb 2024 11:45:47 +0000 (+0000) Subject: align qwx_ce_rx error code checking with linux ath11k driver X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b0ca02faf19dd8a4bd1c72ce1c6b2f3e84657c81;p=openbsd align qwx_ce_rx error code checking with linux ath11k driver This silences warnings about a full Rx ring which the Linux driver is likewise suppressing. They appeared because I used the wrong error code, ENOBUF vs. ENOSPC. --- diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 0382346eb15..1fc69426fbb 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.53 2024/02/29 11:42:31 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.54 2024/02/29 11:45:47 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -21333,7 +21333,7 @@ qwx_ce_rx_post_buf(struct qwx_softc *sc) pipe = &sc->ce.ce_pipe[i]; ret = qwx_ce_rx_post_pipe(pipe); if (ret) { - if (ret == ENOBUFS) + if (ret == ENOSPC) continue; printf("%s: failed to post rx buf to pipe: %d err: %d\n", @@ -21437,7 +21437,7 @@ qwx_ce_recv_process_cb(struct qwx_ce_pipe *pipe) } err = qwx_ce_rx_post_pipe(pipe); - if (err && err != ENOBUFS) { + if (err && err != ENOSPC) { printf("%s: failed to post rx buf to pipe: %d err: %d\n", __func__, pipe->pipe_num, err); #ifdef notyet