[PATCH net-next 1/4] atl1c: show correct link speed on Mikrotik 10/25G NIC

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC maintains compatibility with existing atl1c driver. However it does have new features. This defines some new register offsets, code for identifying the new type of NIC and correct speed detection for the NIC. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet

[PATCH net-next 3/4] atl1c: adjust max mtu according to Mikrotik 10/25G NIC ability

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC supports jumbo frames. Jumbo frames are supported for TSO as well. This enables the support for mtu up to 9500 bytes. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions

[PATCH net-next 2/4] atl1c: improve performance by avoiding unnecessary pcie writes on xmit

2021-04-19 Thread Gatis Peisenieks
3960X system improved from 1150Kpps to 1700Kpps. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros

[PATCH net-next 4/4] atl1c: enable rx csum offload on Mikrotik 10/25G NIC

2021-04-19 Thread Gatis Peisenieks
Threadripper 3960X with NIC improved 16.5 -> 20.0 Gbps with mtu=1500. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c.h | 2 ++ drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 5 + 2 files changed, 7 insertions(+) diff --git a/drivers/net/ethernet/atheros/at

[PATCH net-next 0/4] atl1c: support for Mikrotik 10/25G NIC features

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC maintains compatibility with existing atl1c driver. However it does have new features. This patch set adds support for reporting cards higher link speed, max-mtu, enables rx csum offload and improves tx performance. Gatis Peisenieks (4): atl1c: show correct

[PATCH net-next v6] atl1c: move tx cleanup processing out of interrupt

2021-04-14 Thread Gatis Peisenieks
tx/rx traffic increased: from 280Kpps to 1130Kpps on Threadripper 3960X with upcoming Mikrotik 10/25G NIC, from 520Kpps to 850Kpps on Intel i3-3320 with Mikrotik RB44Ge adapter. Signed-off-by: Gatis Peisenieks --- v6: - sent with git send-email v5: - EXPORT_SYMBOL(dev_set_threaded) not

Re: [PATCH net v4] atl1c: move tx cleanup processing out of interrupt

2021-04-07 Thread Gatis Peisenieks
On 2021-04-07 19:55, Eric Dumazet wrote: On 4/6/21 4:49 PM, Gatis Peisenieks wrote: Tx queue cleanup happens in interrupt handler on same core as rx queue processing. Both can take considerable amount of processing in high packet-per-second scenarios. Sending big amounts of packets can stall

[PATCH net-next v5] atl1c: move tx cleanup processing out of interrupt

2021-04-06 Thread Gatis Peisenieks
amounts of tx/rx traffic increased: from 280Kpps to 1130Kpps on Threadripper 3960X with upcoming Mikrotik 10/25G NIC, from 520Kpps to 850Kpps on Intel i3-3320 with Mikrotik RB44Ge adapter. Signed-off-by: Gatis Peisenieks --- Reposting for net-next as requested by David Miller, v5

[PATCH net v4] atl1c: move tx cleanup processing out of interrupt

2021-04-06 Thread Gatis Peisenieks
dev_set_threaded API, need to add EXPORT_SYMBOL for it. The ability to sustain equal amounts of tx/rx traffic increased: from 280Kpps to 1130Kpps on Threadripper 3960X with upcoming Mikrotik 10/25G NIC, from 520Kpps to 850Kpps on Intel i3-3320 with Mikrotik RB44Ge adapter. Signed-off-by: Gatis

[PATCH net v3] atl1c: move tx cleanup processing out of interrupt

2021-04-02 Thread Gatis Peisenieks
: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c.h| 2 + .../net/ethernet/atheros/atl1c/atl1c_main.c | 44 ++- net/core/dev.c| 1 + 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/atheros

[PATCH net v2] atl1c: move tx cleanup processing out of interrupt

2021-04-02 Thread Gatis Peisenieks
amounts of tx/rx traffic increased: from 280Kpps to 1130Kpps on Threadripper 3960X with upcoming Mikrotik 10/25G NIC, from 520Kpps to 850Kpps on Intel i3-3320 with Mikrotik RB44Ge adapter. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c.h| 2 + .../net

[PATCH net] atl1c: move tx cleanup processing out of interrupt

2021-04-01 Thread Gatis Peisenieks
ability to sustain equal amounts of tx/rx traffic increased: from 280Kpps to 1130Kpps on Threadripper 3960X with upcoming Mikrotik 10/25G NIC, from 520Kpps to 850Kpps on Intel i3-3320 with Mikrotik RB44Ge adapter. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c.h