diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-04-01 09:07:22 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-04-01 09:16:30 +0200 |
commit | 5c57d6c3820ac6ff21089cb30655ff2905bd8d3a (patch) | |
tree | cbba66362af677af3d43d16ee3d994e656d5f3c8 /target/linux/generic | |
parent | 53796f924849918e79ba251d1f1ecffff8d9ac27 (diff) | |
download | upstream-5c57d6c3820ac6ff21089cb30655ff2905bd8d3a.tar.gz upstream-5c57d6c3820ac6ff21089cb30655ff2905bd8d3a.tar.bz2 upstream-5c57d6c3820ac6ff21089cb30655ff2905bd8d3a.zip |
kernel: fix mtk_eth_soc flow accounting for MT7986
This was accidentally dropped when MT7981 support was added
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/pending-5.15/731-net-ethernet-mediatek-ppe-add-support-for-flow-accou.patch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/generic/pending-5.15/731-net-ethernet-mediatek-ppe-add-support-for-flow-accou.patch b/target/linux/generic/pending-5.15/731-net-ethernet-mediatek-ppe-add-support-for-flow-accou.patch index 6ca33152fc..60c32b6705 100644 --- a/target/linux/generic/pending-5.15/731-net-ethernet-mediatek-ppe-add-support-for-flow-accou.patch +++ b/target/linux/generic/pending-5.15/731-net-ethernet-mediatek-ppe-add-support-for-flow-accou.patch @@ -88,6 +88,14 @@ v2: fix wrong variable name in return value check spotted by Denis Kirjanov .txrx = { .txd_size = sizeof(struct mtk_tx_dma_v2), .rxd_size = sizeof(struct mtk_rx_dma_v2), +@@ -4847,6 +4850,7 @@ static const struct mtk_soc_data mt7986_ + .offload_version = 2, + .hash_offset = 4, + .foe_entry_size = sizeof(struct mtk_foe_entry), ++ .has_accounting = true, + .txrx = { + .txd_size = sizeof(struct mtk_tx_dma_v2), + .rxd_size = sizeof(struct mtk_rx_dma_v2), --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -1014,6 +1014,8 @@ struct mtk_reg_map { |