summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorWei Fang <wei.fang@nxp.com>2023-07-21 16:35:59 +0800
committerJakub Kicinski <kuba@kernel.org>2023-07-24 16:45:29 -0700
commitbb7a0156365dffe2fcd63e2051145fbe4f8908b4 (patch)
treef4f270238001bea8ed578e2369fe8ea51c0283a2 /include/net
parent69172f0bcb6a09110c5d2a6d792627f5095a9018 (diff)
downloadlinux-bb7a0156365dffe2fcd63e2051145fbe4f8908b4.tar.gz
linux-bb7a0156365dffe2fcd63e2051145fbe4f8908b4.tar.bz2
linux-bb7a0156365dffe2fcd63e2051145fbe4f8908b4.zip
net: fec: avoid tx queue timeout when XDP is enabled
According to the implementation of XDP of FEC driver, the XDP path shares the transmit queues with the kernel network stack, so it is possible to lead to a tx timeout event when XDP uses the tx queue pretty much exclusively. And this event will cause the reset of the FEC hardware. To avoid timeout in this case, we use the txq_trans_cond_update() interface to update txq->trans_start to jiffies so that watchdog won't generate a transmit timeout warning. Fixes: 6d6b39f180b8 ("net: fec: add initial XDP support") Signed-off-by: Wei Fang <wei.fang@nxp.com> Link: https://lore.kernel.org/r/20230721083559.2857312-1-wei.fang@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions