]> 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)
commit5f2efe09c4476db6d212ae54f5567d328118a445
treeca2b91b18615e9c9e9eb7ba45a801fc61d6f079b
parent3239b64b5e074d85494d72e5624ee1c39727dab6
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: 2cb47228f9dc ("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