forked from Minki/linux
net: dsa: tag_qca: let DSA core deal with TX reallocation
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>
This commit is contained in:
parent
ef3f72fee2
commit
9bbda29ae1
@ -34,9 +34,6 @@ static struct sk_buff *qca_tag_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
__be16 *phdr;
|
||||
u16 hdr;
|
||||
|
||||
if (skb_cow_head(skb, QCA_HDR_LEN) < 0)
|
||||
return NULL;
|
||||
|
||||
skb_push(skb, QCA_HDR_LEN);
|
||||
|
||||
memmove(skb->data, skb->data + QCA_HDR_LEN, 2 * ETH_ALEN);
|
||||
|
Loading…
Reference in New Issue
Block a user