]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ecbc7c31896f172184d9548dd02f43880db848c
treeca2b91b18615e9c9e9eb7ba45a801fc61d6f079b
parent7d1b1107f56b0bfd24680f905e0b5b7d51c69e69
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: 2274ba25576e ("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