diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-07-30 10:41:09 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-08-01 13:02:42 +0300 |
commit | de9db136dcc3b60ba99f1f5034fc6ae7af45fa99 (patch) | |
tree | 6d7dca030406594ad23f5f4a26bf388b65bf4a36 /net/dsa/tag_8021q.c | |
parent | 630e0afacd4beb8ad3081774169632b5b84e653d (diff) | |
download | linux-de9db136dcc3b60ba99f1f5034fc6ae7af45fa99.tar.xz |
net: dsa: tag_qca: return early if dev is not found
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: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20230730074113.21889-1-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/dsa/tag_8021q.c')
0 files changed, 0 insertions, 0 deletions