diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-08-27 06:39:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-09-01 17:01:56 +0200 |
commit | b5d425af237dc03327078d6b9be178a38b5f8723 (patch) | |
tree | 42448318e13eef9ff603b01ebc3088a32ce617ec /target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch | |
parent | 6541028598b4a1079ee6182c5b50d6bcd9e21002 (diff) | |
download | upstream-b5d425af237dc03327078d6b9be178a38b5f8723.tar.gz upstream-b5d425af237dc03327078d6b9be178a38b5f8723.tar.bz2 upstream-b5d425af237dc03327078d6b9be178a38b5f8723.zip |
mediatek/ramips: unify ethernet driver fixes and add performance optimizations
Increase DMA burst size and tx ring size and optimize tx processing
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch')
-rw-r--r-- | target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch b/target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch deleted file mode 100644 index dd75edf116..0000000000 --- a/target/linux/mediatek/patches-5.4/0400-eth-fix-rx-vlan-hw-offload.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c -+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c -@@ -1315,7 +1315,7 @@ static int mtk_poll_rx(struct napi_struc - skb->protocol = eth_type_trans(skb, netdev); - - if (netdev->features & NETIF_F_HW_VLAN_CTAG_RX && -- RX_DMA_VID(trxd.rxd3)) -+ (trxd.rxd2 & RX_DMA_VTAG)) - __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), - RX_DMA_VID(trxd.rxd3)); - skb_record_rx_queue(skb, 0); ---- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h -+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h -@@ -293,6 +293,7 @@ - #define RX_DMA_LSO BIT(30) - #define RX_DMA_PLEN0(_x) (((_x) & 0x3fff) << 16) - #define RX_DMA_GET_PLEN0(_x) (((_x) >> 16) & 0x3fff) -+#define RX_DMA_VTAG BIT(15) - - /* QDMA descriptor rxd3 */ - #define RX_DMA_VID(_x) ((_x) & 0xfff) |