mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
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>
This commit is contained in:
parent
17f02fb364
commit
a1429324e3
@ -88,6 +88,14 @@ v2: fix wrong variable name in return value check spotted by Denis Kirjanov
|
|||||||
.txrx = {
|
.txrx = {
|
||||||
.txd_size = sizeof(struct mtk_tx_dma_v2),
|
.txd_size = sizeof(struct mtk_tx_dma_v2),
|
||||||
.rxd_size = sizeof(struct mtk_rx_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
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
|
||||||
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
|
||||||
@@ -1026,6 +1026,8 @@ struct mtk_reg_map {
|
@@ -1026,6 +1026,8 @@ struct mtk_reg_map {
|
||||||
|
Loading…
Reference in New Issue
Block a user