The DSA core already provides the tag headroom, drop this.

Fixes: 86dd9868b878 ("net: dsa: tag_rtl4_a: Support also egress tags")
Reported-by: Andrew Lunn <and...@lunn.ch>
Reported-by: DENG Qingfang <dqf...@gmail.com>
Cc: Mauri Sandberg <sandb...@mailfence.com>
Signed-off-by: Linus Walleij <linus.wall...@linaro.org>
---
 net/dsa/tag_rtl4_a.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/dsa/tag_rtl4_a.c b/net/dsa/tag_rtl4_a.c
index 804d756dd80a..8098d81f660b 100644
--- a/net/dsa/tag_rtl4_a.c
+++ b/net/dsa/tag_rtl4_a.c
@@ -42,8 +42,6 @@ static struct sk_buff *rtl4a_tag_xmit(struct sk_buff *skb,
        /* Pad out to at least 60 bytes */
        if (__skb_put_padto(skb, ETH_ZLEN, false))
                return NULL;
-       if (skb_cow_head(skb, RTL4_A_HDR_LEN) < 0)
-               return NULL;
 
        netdev_dbg(dev, "add realtek tag to package to port %d\n",
                   dp->index);
-- 
2.29.2

Reply via email to