Searched hist:"4 ea1dd743eb6c76dec6ed28fae7e1629961a55af" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc.c | diff 4ea1dd743eb6c76dec6ed28fae7e1629961a55af Thu Feb 02 18:11:15 CST 2023 Vladimir Oltean <vladimir.oltean@nxp.com> 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>
|