Skip to content

Commit cf5c668

Browse files
vladimirolteangregkh
authored andcommitted
net: dsa: tag_qca: let DSA core deal with TX reallocation
[ Upstream commit 9bbda29 ] Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: John Crispin <john@phrozen.org> Cc: Alexander Lobakin <alobakin@pm.me> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8f17133 commit cf5c668

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/dsa/tag_qca.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ static struct sk_buff *qca_tag_xmit(struct sk_buff *skb, struct net_device *dev)
3434
__be16 *phdr;
3535
u16 hdr;
3636

37-
if (skb_cow_head(skb, QCA_HDR_LEN) < 0)
38-
return NULL;
39-
4037
skb_push(skb, QCA_HDR_LEN);
4138

4239
memmove(skb->data, skb->data + QCA_HDR_LEN, 2 * ETH_ALEN);

0 commit comments

Comments
 (0)