summaryrefslogtreecommitdiffstats
path: root/fs/signalfd.c
diff options
context:
space:
mode:
authorÍñigo Huguet <ihuguet@redhat.com>2021-07-13 16:21:28 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-13 10:02:41 -0700
commit788bc000d4c2f25232db19ab3a0add0ba4e27671 (patch)
tree799f40e10da9468be0a799069a5df9cf083c513c /fs/signalfd.c
parentf28100cb9c9645c07cbd22431278ac9492f6a01c (diff)
downloadlinux-788bc000d4c2f25232db19ab3a0add0ba4e27671.tar.gz
linux-788bc000d4c2f25232db19ab3a0add0ba4e27671.tar.bz2
linux-788bc000d4c2f25232db19ab3a0add0ba4e27671.zip
sfc: ensure correct number of XDP queues
Commit 99ba0ea616aa ("sfc: adjust efx->xdp_tx_queue_count with the real number of initialized queues") intended to fix a problem caused by a round up when calculating the number of XDP channels and queues. However, this was not the real problem. The real problem was that the number of XDP TX queues had been reduced to half in commit e26ca4b53582 ("sfc: reduce the number of requested xdp ev queues"), but the variable xdp_tx_queue_count had remained the same. Once the correct number of XDP TX queues is created again in the previous patch of this series, this also can be reverted since the error doesn't actually exist. Only in the case that there is a bug in the code we can have different values in xdp_queue_number and efx->xdp_tx_queue_count. Because of this, and per Edward Cree's suggestion, I add instead a WARN_ON to catch if it happens again in the future. Note that the number of allocated queues can be higher than the number of used ones due to the round up, as explained in the existing comment in the code. That's why we also have to stop increasing xdp_queue_number beyond efx->xdp_tx_queue_count. Signed-off-by: Íñigo Huguet <ihuguet@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/signalfd.c')
0 files changed, 0 insertions, 0 deletions