diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2025-04-17 15:00:04 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-21 19:02:14 -0700 |
commit | 1d587faa5be7e9785b682cc5f58ba8f4100c13ea (patch) | |
tree | edf0adc5b6a3054256cddc1ee19554cf1b2e0ff4 /scripts/generate_rust_analyzer.py | |
parent | 2768b2e2f7d25ae8984ebdcde8ec1014b6fdcd89 (diff) |
net: enetc: refactor bulk flipping of RX buffers to separate function
This small snippet of code ensures that we do something with the array
of RX software buffer descriptor elements after passing the skb to the
stack. In this case, we see if the other half of the page is reusable,
and if so, we "turn around" the buffers, making them directly usable by
enetc_refill_rx_ring() without going to enetc_new_page().
We will need to perform this kind of buffer flipping from a new code
path, i.e. from XDP_PASS. Currently, enetc_build_skb() does it there
buffer by buffer, but in a subsequent change we will stop using
enetc_build_skb() for XDP_PASS.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20250417120005.3288549-3-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions