RE: [PATCH V3 2/4] net-next: mediatek: add support for MT7623 ethernet

2016-03-04 Thread David Laight
From: John Crispin > Sent: 03 March 2016 20:03 ... > +/* ugly macro hack to make sure hw_stats and ethtool strings are consistent > */ > +#define MTK_STAT_REG_DECLARE \ > + _FE(tx_bytes) \ > + _FE(tx_packets) \ > + _FE(tx_skip)

Re: [PATCH V3 2/4] net-next: mediatek: add support for MT7623 ethernet

2016-03-03 Thread Joe Perches
On Thu, 2016-03-03 at 21:02 +0100, John Crispin wrote: > Add ethernet support for MediaTek SoCs from the MT7623 family. [] > diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h > b/drivers/net/ethernet/mediatek/mtk_eth_soc.h [] > +/* ugly macro hack to make sure hw_stats and ethtool strings

[PATCH V3 2/4] net-next: mediatek: add support for MT7623 ethernet

2016-03-03 Thread John Crispin
Add ethernet support for MediaTek SoCs from the MT7623 family. These have dual GMAC. Depending on the exact version, there might be a built-in Gigabit switch (MT7530). The core does not have the typical DMA ring setup. Instead there is a linked list that we add descriptors to. There is only one