]> git.hungrycats.org Git - linux/commit
net: dsa: tag_qca: fix wrong MGMT_DATA2 size
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 29 Dec 2022 16:33:33 +0000 (17:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:46 +0000 (12:00 +0100)
commit34a91a47e0794df64cfa928dc768acf5379452fb
treef0f44de617ab7ee3fbb44bfb1d3dfa5375174eff
parentc6819892662328e903944f01b29e2a272048c779
net: dsa: tag_qca: fix wrong MGMT_DATA2 size

commit d9dba91be71f03cc75bcf39fc0d5d99ff33f1ae0 upstream.

It was discovered that MGMT_DATA2 can contain up to 28 bytes of data
instead of the 12 bytes written in the Documentation by accounting the
limit of 16 bytes declared in Documentation subtracting the first 4 byte
in the packet header.

Update the define with the real world value.

Tested-by: Ronald Wahl <ronald.wahl@raritan.com>
Fixes: c2ee8181fddb ("net: dsa: tag_qca: add define for handling mgmt Ethernet packet")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Cc: stable@vger.kernel.org # v5.18+
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/dsa/tag_qca.h