diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-03-31 23:08:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-01 00:57:44 +0300 |
commit | a800abd3ecb9acc55821f7ac9bba6c956b36a595 (patch) | |
tree | 9cf552b123582bbd825ddbc903522881d2e2a7b5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2fa423f5f0c6891effd4d5c8bdb91d418001da11 (diff) | |
download | linux-a800abd3ecb9acc55821f7ac9bba6c956b36a595.tar.xz |
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