aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-03-31 23:08:50 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-31 14:57:44 -0700
commita800abd3ecb9acc55821f7ac9bba6c956b36a595 (patch)
tree9cf552b123582bbd825ddbc903522881d2e2a7b5 /tools/perf/scripts/python/export-to-postgresql.py
parentnet: enetc: consume the error RX buffer descriptors in a dedicated function (diff)
downloadwireguard-linux-a800abd3ecb9acc55821f7ac9bba6c956b36a595.tar.xz
wireguard-linux-a800abd3ecb9acc55821f7ac9bba6c956b36a595.zip
net: enetc: move skb creation into enetc_build_skb
We need to build an skb from two code paths now: from the plain RX data path and from the XDP data path when the verdict is XDP_PASS. Create a new enetc_build_skb function which contains the essential steps for building an skb based on the first and last positions of buffer descriptors within the RX ring. We also squash the enetc_process_skb function into enetc_build_skb, because what that function did wasn't very meaningful on its own. The "rx_frm_cnt++" instruction has been moved around napi_gro_receive for cosmetic reasons, to be in the same spot as rx_byte_cnt++, which itself must be before napi_gro_receive, because that's when we lose ownership of the skb. 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