diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2023-02-03 03:11:15 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-04 07:05:57 +0300 |
commit | 4ea1dd743eb6c76dec6ed28fae7e1629961a55af (patch) | |
tree | 8b6e2e64eceea6206328d96bda4a8236c9cbb058 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 46a0ecf93b6d188379efe05cdde8564f1fe7fdad (diff) | |
download | linux-4ea1dd743eb6c76dec6ed28fae7e1629961a55af.tar.xz |
net: enetc: recalculate num_real_tx_queues when XDP program attaches
Since the blamed net-next commit, enetc_setup_xdp_prog() no longer goes
through enetc_open(), and therefore, the function which was supposed to
detect whether a BPF program exists (in order to crop some TX queues
from network stack usage), enetc_num_stack_tx_queues(), no longer gets
called.
We can move the netif_set_real_num_rx_queues() call to enetc_alloc_msix()
(probe time), since it is a runtime invariant. We can do the same thing
with netif_set_real_num_tx_queues(), and let enetc_reconfigure_xdp_cb()
explicitly recalculate and change the number of stack TX queues.
Fixes: c33bfaf91c4c ("net: enetc: set up XDP program under enetc_reconfigure()")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions