[PATCH net-next v6 0/2] net: thunderx: add support for PTP clock

2018-01-15 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next v6 2/2] net: thunderx: add timestamping support

2018-01-15 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> Acked-by: P

[PATCH net-next v6 1/2] net: add support for Cavium PTP coprocessor

2018-01-15 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@ca

Re: [PATCH net-next v5 2/2] net: thunderx: add timestamping support

2018-01-08 Thread Aleksey Makarov
On 12.12.2017 05:32, Richard Cochran wrote: > On Mon, Dec 11, 2017 at 05:14:31PM +0300, Aleksey Makarov wrote: >> diff --git a/drivers/net/ethernet/cavium/thunder/nic.h >> b/drivers/net/ethernet/cavium/thunder/nic.h >> index 4a02e618e318..204b234beb9d 100644 >> --- a/

Re: [PATCH net-next v5 1/2] net: add support for Cavium PTP coprocessor

2017-12-12 Thread Aleksey Makarov
Hi Richard, On 12/12/2017 01:59 AM, Richard Cochran wrote: Sorry I didn't finish reviewing before... On Mon, Dec 11, 2017 at 05:14:30PM +0300, Aleksey Makarov wrote: [ ... ] +static int cavium_ptp_probe(struct pci_dev *pdev, + const struct pci_device_id *ent

[PATCH net-next v5 2/2] net: thunderx: add timestamping support

2017-12-11 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/n

[PATCH net-next v5 1/2] net: add support for Cavium PTP coprocessor

2017-12-11 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.mak

[PATCH net-next v5 0/2] net: thunderx: add support for PTP clock

2017-12-11 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next v4 2/2] net: thunderx: add timestamping support

2017-12-08 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/n

[PATCH net-next v4 1/2] net: add support for Cavium PTP coprocessor

2017-12-08 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.mak

[PATCH net-next v4 0/2] net: thunderx: add support for PTP clock

2017-12-08 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next v3 1/2] net: add support for Cavium PTP coprocessor

2017-12-06 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.mak

[PATCH net-next v3 2/2] net: thunderx: add timestamping support

2017-12-06 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/n

[PATCH net-next v3 0/2] net: thunderx: add support for PTP clock

2017-12-06 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next] net: thunderx: Set max queue count taking XDP_TX into account

2017-11-24 Thread Aleksey Makarov
cjacob <cja...@caviumnetworks.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/th

[PATCH net-next] net: thunderx: Add support for xdp redirect

2017-11-24 Thread Aleksey Makarov
From: Sunil Goutham <sgout...@cavium.com> This patch adds support for XDP_REDIRECT. Flush is not yet supported. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: cjacob <cja...@caviumnetworks.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.

[PATCH net v3] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
s IPv4 when IP csum offload is set in the SQ descriptor. Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@auriga.com> Reviewed-by: Eric

[PATCH net v3] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
s IPv4 when IP csum offload is set in the SQ descriptor. Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@auriga.com> --- drivers

[PATCH net v2] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-23 Thread Aleksey Makarov
s IPv4 when IP csum offload is set in the SQ descriptor. Fixes: 494fd005 ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@auriga.com> --- drivers/net/ethernet/c

[PATCH net] net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts

2017-11-22 Thread Aleksey Makarov
Fixes: 494fd005 ("net: thunderx: Enable TSO and checksum offloads for ipv6") Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@auriga.com> --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 3 ++- 1 file changed, 2 insertions(+

[PATCH net-next v2 2/2] net: thunderx: add timestamping support

2017-11-17 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/n

[PATCH net-next v2 1/2] net: add support for Cavium PTP coprocessor

2017-11-17 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.mak

[PATCH net-next v2 0/2] net: thunderx: add support for PTP clock

2017-11-17 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next] net: thunderx: fix double free error

2017-11-09 Thread Aleksey Makarov
ing <colin.k...@canonical.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/net/ethernet/cavium/thunder/nic_main.c | 82 ++ 1 file changed, 30 insertions(+), 52 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nic_main.c b/dri

Re: [PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-08 Thread Aleksey Makarov
On 11/07/2017 10:49 PM, David Daney wrote: On 11/07/2017 11:07 AM, Aleksey Makarov wrote: From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Ra

[PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-07 Thread Aleksey Makarov
From: Radoslaw Biernacki <r...@semihalf.com> This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <r...@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.mak

[PATCH net-next 0/2] net: thunderx: add support for PTP clock

2017-11-07 Thread Aleksey Makarov
This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use

[PATCH net-next 2/2] net: thunderx: add timestamping support

2017-11-07 Thread Aleksey Makarov
ertion but only generates a separate CQE with transmitted packet's timestamp. Also HW supports only one packet at a time for timestamping on the transmit side. Signed-off-by: Sunil Goutham <sgout...@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.maka...@cavium.com> --- drivers/n

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Aleksey Makarov
registers different handlers for different irqs. I don't see why it can be wrong. I am going to address your other suggestions in the next version of the patchset. Thank you Aleksey Makarov -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord

[PATCH net-next v2 4/8] net: thunderx: Receive hashing HW offload support

2015-08-30 Thread Aleksey Makarov
flows across multiple CPUs. Offload can be disabled via ethtool. Signed-off-by: Robert Richter rrich...@cavium.com Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 14

[PATCH net-next v2 2/8] net: thunderx: Add receive error stats reporting via ethtool

2015-08-30 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Added ethtool support to dump receive packet error statistics reported in CQE. Also made some small fixes Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium

[PATCH net-next v2 3/8] net: thunderx: mailboxes: remove code duplication

2015-08-30 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Use the nicvf_send_msg_to_pf() function in the mailbox code. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Robert Richter rrich...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet

[PATCH net-next v2 5/8] net: thunderx: Support for HW VLAN stripping

2015-08-30 Thread Aleksey Makarov
for transmit packets. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic_main.c | 4 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 28 +++--- drivers/net/ethernet

[PATCH net-next v2 1/8] net: thunderx: fix MAINTAINERS

2015-08-30 Thread Aleksey Makarov
From: Aleksey Makarov aleksey.maka...@caviumnetworks.com The liquidio and thunder drivers have different maintainers. Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next v2 0/8] net: thunderx: New features and fixes

2015-08-30 Thread Aleksey Makarov
) Aleksey Makarov (1): net: thunderx: fix MAINTAINERS Sunil Goutham (7): net: thunderx: Add receive error stats reporting via ethtool net: thunderx: mailboxes: remove code duplication net: thunderx: Receive hashing HW offload support net: thunderx: Support for HW VLAN stripping net

[PATCH net-next v2 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-30 Thread Aleksey Makarov
primary VF's interface. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com Signed-off-by: Robert Richter rrich...@cavium.com --- drivers/net/ethernet/cavium/thunder/nic.h | 42 - drivers/net/ethernet/cavium/thunder

[PATCH net-next v2 6/8] net: thunderx: Rework interrupt handling

2015-08-30 Thread Aleksey Makarov
handlers. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic.h | 1 + drivers/net/ethernet/cavium/thunder/nicvf_main.c | 172 - drivers/net/ethernet/cavium

[PATCH net-next v2 8/8] net: thunderx: Support for internal loopback mode

2015-08-30 Thread Aleksey Makarov
connectivity. 'loopback' mode can be enabled or disabled via ethtool. Note: This feature is not supported when no of VFs enabled are morethan no of physical interfaces i.e active BGX LMACs Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com

[PATCH net-next 4/8] net: thunderx: Receive hashing HW offload support

2015-08-28 Thread Aleksey Makarov
flows across multiple CPUs. Offload can be disabled via ethtool. Signed-off-by: Robert Richter rrich...@cavium.com Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 14

[PATCH net-next 2/8] net: thunderx: Add receive error stats reporting via ethtool

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Added ethtool support to dump receive packet error statistics reported in CQE. Also made some small fixes Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium

[PATCH net-next 1/8] net: thunderx: fix MAINTAINERS

2015-08-28 Thread Aleksey Makarov
From: Aleksey Makarov aleksey.maka...@caviumnetworks.com The liquidio and thunder drivers have different maintainers. Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Aleksey Makarov
...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic.h | 1 + drivers/net/ethernet/cavium/thunder/nicvf_main.c | 172 - drivers/net/ethernet/cavium/thunder/nicvf_queues.h | 2 + 3 files changed, 103

[PATCH net-next 5/8] net: thunderx: Support for HW VLAN stripping

2015-08-28 Thread Aleksey Makarov
for transmit packets. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic_main.c | 4 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 28 +++--- drivers/net/ethernet

[PATCH net-next 3/8] net: thunderx: mailboxes: remove code duplication

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Use the nicvf_send_msg_to_pf() function in the mailbox code. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Robert Richter rrich...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet

[PATCH net-next 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-28 Thread Aleksey Makarov
primary VF's interface. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com Signed-off-by: Robert Richter rrich...@cavium.com --- drivers/net/ethernet/cavium/thunder/nic.h | 42 - drivers/net/ethernet/cavium/thunder

[PATCH net-next 8/8] net: thunderx: Support for internal loopback mode

2015-08-28 Thread Aleksey Makarov
connectivity. 'loopback' mode can be enabled or disabled via ethtool. Note: This feature is not supported when no of VFs enabled are morethan no of physical interfaces i.e active BGX LMACs Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com

[PATCH net 02/11] net: thunderx: Fix memory leak while tearing down interface

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Fixed 'tso_hdrs' memory not being freed properly. Also fixed SQ skbuff maintenance issues. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder

[PATCH net 00/11] net: thunderx: Misc fixes

2015-07-29 Thread Aleksey Makarov
Miscellaneous fixes for the ThunderX VNIC driver All the patches can be applied individually. It's ok to drop some if the maintainer feels uncomfortable with applying for 4.2. Sunil Goutham (10): net: thunderx: Fix data integrity issues with LDWB net: thunderx: Fix memory leak while tearing

[PATCH net 03/11] net: thunderx: Fix RQ_DROP miscalculation

2015-07-29 Thread Aleksey Makarov
notifications taking first half of CQ under heavy load and time taken by NAPI to clear transmit notifications will increase with higher queue sizes. Again results in SQ being stopped. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com

[PATCH net 09/11] net: thunderx: Fix crash when changing rss with mutliple traffic flows

2015-07-29 Thread Aleksey Makarov
Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium

[PATCH net 05/11] net: thunderx: Fix TSO packet statistic

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Fixing TSO packages not being counted. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH net 01/11] net: thunderx: Fix data integrity issues with LDWB

2015-07-29 Thread Aleksey Makarov
rrich...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder

[PATCH net 11/11] net: thunderx: Fix for crash while BGX teardown

2015-07-29 Thread Aleksey Makarov
...@caviumnetworks.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder

[PATCH net 07/11] net: thunderx: Wakeup TXQ only if CQE_TX are processed

2015-07-29 Thread Aleksey Makarov
-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic.h | 3 +- .../net/ethernet/cavium/thunder/nicvf_ethtool.c| 3 +- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 40 +++--- 3 files changed, 31 insertions

[PATCH net 06/11] net: thunderx: Suppress alloc_pages() failure warnings

2015-07-29 Thread Aleksey Makarov
not be allocated. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder

[PATCH net 08/11] net: thunderx: Set watchdog timeout value

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com If a txq (SQ) remains in stopped state after this timeout its considered as stuck and interface is reinited. Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium

[PATCH net 10/11] net: thunderx: Add PCI driver shutdown routine

2015-07-29 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/cavium

[PATCH 00/10] net: thunderx: fix problems reported by static check tools

2015-06-02 Thread Aleksey Makarov
These are fixes for the problems that were reported by static check tools. Aleksey Makarov (9): net: thunderx: fix constants net: thunderx: introduce a function for mailbox access net: thunderx: rework mac address handling net: thunderx: delete unused variables net: thunderx: add static

[PATCH 04/10] net: thunderx: rework mac address handling

2015-06-02 Thread Aleksey Makarov
This fixes sparse message: drivers/net/ethernet/cavium/thunder/nicvf_main.c:385:40: sparse: cast to restricted __le64 Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nic.h | 4

[PATCH 07/10] net: thunderx: fix nicvf_set_rxfh()

2015-06-02 Thread Aleksey Makarov
; 524 } regards, dan carpenter Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net

[PATCH 03/10] net: thunderx: introduce a function for mailbox access

2015-06-02 Thread Aleksey Makarov
This fixes sparse message: drivers/net/ethernet/cavium/thunder/nicvf_main.c:153:25: sparse: cast to restricted __le64 Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 27

[PATCH 05/10] net: thunderx: delete unused variables

2015-06-02 Thread Aleksey Makarov
They were left from development stage Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH 09/10] net: thunderx: check if memory allocation was successful

2015-06-02 Thread Aleksey Makarov
q_len * TSO_HEADER_SIZE, 369sq-tso_hdrs_phys, GFP_KERNEL); 370 if (!sq-tso_hdrs) Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com

[PATCH 10/10] net: thunderx: use GFP_KERNEL in thread context

2015-06-02 Thread Aleksey Makarov
GFP_KERNEL should be used in the thread context Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b

[PATCH 08/10] net: thunderx: remove unneeded type conversions

2015-06-02 Thread Aleksey Makarov
No need to cast void* to u8*: pointer arithmetics works same way for both. Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium

[PATCH 06/10] net: thunderx: add static

2015-06-02 Thread Aleksey Makarov
This fixes sparse messages like this: drivers/net/ethernet/cavium/thunder/nicvf_main.c:1141:26: sparse: symbol 'nicvf_get_stats64' was not declared. Should it be static? Also remove unused declarations Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov

[PATCH 02/10] net: thunderx: fix constants

2015-06-02 Thread Aleksey Makarov
This fixes sparse messages like this: drivers/net/ethernet/cavium/thunder/thunder_bgx.c:897:24: sparse: constant 0x3000 is so big it is long Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Aleksey Makarov aleksey.maka...@caviumnetworks.com --- drivers/net/ethernet

[PATCH 01/10] net: thunderx: Cleanup duplicate NODE_ID macros, add nic_get_node_id()

2015-06-02 Thread Aleksey Makarov
From: Robert Richter rrich...@cavium.com There are duplicate NODE_ID macro definitions. Move all of them to nic.h for usage in nic and bgx driver and introduce nic_get_node_id() helper function. This patch also fixes 64bit mask which should have been ULL by reworking the node calculation.

[PATCH net-next v6 0/2] Adding support for Cavium ThunderX network controller

2015-05-26 Thread Aleksey Makarov
This patchset adds support for the Cavium ThunderX network controller. changes in v6: * unused preprocessor symbols were removed * reduce no of atomic operations in SQ maintenance * support for TCP segmentation at driver level * reset RBDR if fifo state is FAIL * fixed an issue with link

[PATCH net-next v6 1/2] pci: Add Cavium PCI vendor id

2015-05-26 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com This vendor id will be used by network (vNIC), USB (xHCI), SATA (AHCI), GPIO, I2C, MMC and maybe other drivers for ThunderX SoC. Acked-by: Bjorn Helgaas bhelg...@google.com Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov

[PATCH net-next v5 0/2] Adding support for Cavium ThunderX network controller

2015-05-22 Thread Aleksey Makarov
This patchset adds support for the Cavium ThunderX network controller. changes in v5: * __packed were removed. now we rely on C language ABI * nic_dbg() - netdev_dbg() * fixes for a typo, constant spelling and using BIT_ULL * use print_hex_dump() * unnecessary conditions in a long if()

[PATCH net-next v5 1/2] pci: Add Cavium PCI vendor id

2015-05-22 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com This vendor id will be used by network (vNIC), USB (xHCI), SATA (AHCI), GPIO, I2C, MMC and maybe other drivers for ThunderX SoC. Acked-by: Bjorn Helgaas bhelg...@google.com Signed-off-by: Sunil Goutham sgout...@cavium.com Signed-off-by: Aleksey Makarov

Re: [PATCH net-next v3 1/2] pci: Add Cavium PCI vendor id

2015-05-18 Thread Aleksey Makarov
Author of this patch is Author: Sunil Goutham sgout...@cavium.com Sorry for this. It will be fixed in next versions. On 05/15/2015 08:36 PM, Aleksey Makarov wrote: Signed-off-by: Aleksey Makarov aleksey.maka...@auriga.com --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions

[PATCH net-next v3 1/2] pci: Add Cavium PCI vendor id

2015-05-15 Thread Aleksey Makarov
Signed-off-by: Aleksey Makarov aleksey.maka...@auriga.com --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index e63c02a..3633cc6 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2327,6