net: dsa: tag_rtl4_a: Support also egress tags
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Feb 2021 23:55:42 +0000 (00:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2021 00:44:39 +0000 (16:44 -0800)
commit86dd9868b8788a9063893a97649594af93cd5aa6
treeca2b91b18615e9c9e9eb7ba45a801fc61d6f079b
parentc544fcb4cbae77f7c6106c5e12c39c7c52f4de00
net: dsa: tag_rtl4_a: Support also egress tags

Support also transmitting frames using the custom "8899 A"
4 byte tag.

Qingfang came up with the solution: we need to pad the
ethernet frame to 60 bytes using eth_skb_pad(), then the
switch will happily accept frames with custom tags.

Cc: Mauri Sandberg <sandberg@mailfence.com>
Reported-by: DENG Qingfang <dqfext@gmail.com>
Fixes: efd7fe68f0c6 ("net: dsa: tag_rtl4_a: Implement Realtek 4 byte A tag")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_rtl4_a.c