diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-04-16 23:22:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-17 02:08:39 +0200 |
commit | 672f9a21989e56c8233d1d8daab3e5eecf76c59e (patch) | |
tree | 71e187ae34ae1dc42cf074a4efd100d859d92eba /lib/fdt_sw.c | |
parent | net: enetc: rename the buffer reuse helpers (diff) | |
download | linux-672f9a21989e56c8233d1d8daab3e5eecf76c59e.tar.xz linux-672f9a21989e56c8233d1d8daab3e5eecf76c59e.zip |
net: enetc: recycle buffers for frames with RX errors
When receiving a frame with errors, currently we do nothing with it (we
don't construct an skb or an xdp_buff), we just exit the NAPI poll loop.
Let's put the buffer back into the RX ring (similar to XDP_DROP).
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/fdt_sw.c')
0 files changed, 0 insertions, 0 deletions