realtek: fix egress port mask on rtl839x
authorSander Vanheule <sander@svanheule.net>
Tue, 28 Jun 2022 19:14:03 +0000 (21:14 +0200)
committerSander Vanheule <sander@svanheule.net>
Sun, 17 Jul 2022 08:06:32 +0000 (10:06 +0200)
commitd9516cacb087fed7716b34b1e02ce956bb6c27f1
tree592f721170164c68e6abaa3213bf381eea040df9
parentef3d0a302936e396c55ecfc080049f0c04823390
realtek: fix egress port mask on rtl839x

The flag to enable the outgoing port mask is in CPU header bit 43, with
bit 0 being the leftmost bit of the header. This corresponds to BIT(4)
in the third 16-bit value of the header.

Correctly set AS_DPM by fixing the off-by-one error.

Fixes: 9eab76c84e31 ("realtek: Improve TX CPU-Tag usage")
Tested-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c