summaryrefslogtreecommitdiff
path: root/net/dsa/tag_rtl4_a.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/tag_rtl4_a.c')
-rw-r--r--net/dsa/tag_rtl4_a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/tag_rtl4_a.c b/net/dsa/tag_rtl4_a.c
index ff8707ff0c5b..06e901eda298 100644
--- a/net/dsa/tag_rtl4_a.c
+++ b/net/dsa/tag_rtl4_a.c
@@ -47,7 +47,7 @@ static struct sk_buff *rtl4a_tag_xmit(struct sk_buff *skb,
dp->index);
skb_push(skb, RTL4_A_HDR_LEN);
- memmove(skb->data, skb->data + RTL4_A_HDR_LEN, 2 * ETH_ALEN);
+ dsa_alloc_etype_header(skb, RTL4_A_HDR_LEN);
tag = skb->data + 2 * ETH_ALEN;
/* Set Ethertype */