Thread (1 message) 1 message, 1 author, 2023-07-26

Re: [net-next PATCH 1/3] net: dsa: tag_qca: return early if dev is not found

From: Vladimir Oltean <olteanv@gmail.com>
Date: 2023-07-26 12:06:20
Also in: lkml

On Mon, Jul 24, 2023 at 05:30:56AM +0200, Christian Marangi wrote:
Currently checksum is recalculated and dsa tag stripped even if we later
don't find the dev.

To improve code, exit early if we don't find the dev and skip additional
operation on the skb since it will be freed anyway.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help