diff options
author | 2021-03-10 14:03:47 +0200 | |
---|---|---|
committer | 2021-03-10 13:14:15 -0800 | |
commit | c027aa9201eb9af8067282d4b8a7ce7523cd3c8d (patch) | |
tree | de60753594b13c22bea0b9c74ace90c544b206ad /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: enetc: don't initialize unused ports from a separate code path (diff) | |
download | wireguard-linux-c027aa9201eb9af8067282d4b8a7ce7523cd3c8d.tar.xz wireguard-linux-c027aa9201eb9af8067282d4b8a7ce7523cd3c8d.zip |
net: enetc: simplify callers of enetc_rxbd_next
When we iterate through the BDs in the RX ring, the software producer
index (which is already passed by value to enetc_rxbd_next) lags behind,
and we end up with this funny looking "++i == rx_ring->bd_count" check
so that we drag it after us.
Let's pass the software producer index "i" by reference, so that
enetc_rxbd_next can increment it by itself (mod rx_ring->bd_count),
especially since enetc_rxbd_next has to increment the index anyway.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions