linux/net/dsa
Vivien Didelot fe47d56306 net: dsa: factor skb freeing on xmit
As of a86d8becc3 ("net: dsa: Factor bottom tag receive functions"),
the rcv caller frees the original SKB in case or error.

Be symmetric with that and make the xmit caller do the same.

At the same time, fix the checkpatch NULL comparison check:

        CHECK: Comparison to NULL could be written "!nskb"
    #208: FILE: net/dsa/tag_trailer.c:35:
    +	if (nskb == NULL)

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-01 17:34:56 -04:00
..
Kconfig dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
Makefile dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
dsa.c dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
dsa2.c net: dsa: do not cast dst 2017-06-01 17:34:56 -04:00
dsa_priv.h net: dsa: comment hot path requirements 2017-06-01 17:34:56 -04:00
legacy.c net: dsa: do not cast dst 2017-06-01 17:34:56 -04:00
port.c net: dsa: support cross-chip ageing time 2017-05-24 16:27:47 -04:00
slave.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
switch.c net: dsa: support cross-chip ageing time 2017-05-24 16:27:47 -04:00
tag_brcm.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_dsa.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_edsa.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_ksz.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_lan9303.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_mtk.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_qca.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_trailer.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00