[net-next v2] octeontx2-af: cn10k: Fixes CN10K RPM reference issue

2021-02-16 Thread Geetha sowjanya
This patch fixes references to uninitialized variables and debugfs entry name for CN10K platform and HW_TSO flag check. Fixes: 3ad3f8f93c81 ("octeontx2-af: cn10k: MAC internal loopback support"). Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham v1-v2 - Clear HW_TSO flag f

[net-next PATCH] octeontx2-af: cn10k: Fixes CN10K RPM reference issue

2021-02-15 Thread Geetha sowjanya
This patch fixes references to uninitialized variables and debugfs entry name for CN10K platform and HW_TSO flag check. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham This patch fixes the bug introduced by the commit 3ad3f8f93c81 ("octeontx2-af: cn10k: MAC internal loo

[net-next v6 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-11 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/cn10k.c| 2 +- .../marvell/octeontx2/nic/otx2_common.c | 45 +-- .../marvell/octeontx2/nic/otx2_common.h | 2

[net-next v6 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-11 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 10 +- .../net/ethernet/marvell/octeontx2/af/cgx.h | 4 +- .../marvell/octeontx2/af

[net-next v6 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-11 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v6 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-11 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v6 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-11 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v6 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-11 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v6 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-11 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/nic/otx2_common.h | 15 +- .../ethernet/marvell/octeontx2/nic/otx2_pf.c

[net-next v6 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-11 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS | 1 + .../ethernet/marvell/octeontx2/af/Makefile| 2 +- .../net/ethernet/marvell/octeontx2/af/

[net-next v6 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-11 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic

[net-next v6 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-11 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v6 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-11 Thread Geetha sowjanya
changes mbox initialization to support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/af/mbox.c | 59

[net-next v6 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-11 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/af/rvu_debugfs.c

[net-next v6 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-11 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/Makefile | 8 ++-- .../marvell/octeontx2/nic/otx2_common.h | 29

[net-next v6 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-11 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell

[net-next v6 00/14] Add Marvell CN10K support

2021-02-11 Thread Geetha sowjanya
ext branch. v1-v2 Fixed check-patch reported issues. Geetha sowjanya (5): octeontx2-af: cn10k: Update NIX/NPA context structure octeontx2-af: cn10k: Update NIX and NPA context in debugfs octeontx2-pf: cn10k: Initialise NIX context octeontx2-pf: cn10k: Map LMTST region octeontx2-pf: cn10k:

[net-next v5 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-10 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v5 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-10 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v5 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-10 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/cn10k.c| 2 +- .../marvell/octeontx2/nic/otx2_common.c | 45 +-- .../marvell/octeontx2/nic/otx2_common.h | 2

[net-next v5 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-10 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 10 +- .../net/ethernet/marvell/octeontx2/af/cgx.h | 4 +- .../marvell/octeontx2/af

[net-next v5 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-10 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v5 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-10 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS | 1 + .../ethernet/marvell/octeontx2/af/Makefile| 2 +- .../net/ethernet/marvell/octeontx2/af/

[net-next v5 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-10 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic

[net-next v5 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-10 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v5 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-10 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/nic/otx2_common.h | 15 +- .../ethernet/marvell/octeontx2/nic/otx2_pf.c

[net-next v5 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-10 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v5 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-10 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/af/rvu_debugfs.c

[net-next v5 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-10 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell

[net-next v5 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-10 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/Makefile | 8 ++-- .../marvell/octeontx2/nic/otx2_common.h | 29

[net-next v5 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-10 Thread Geetha sowjanya
changes mbox initialization to support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/af/mbox.c | 59

[net-next v5 00/14] Add Marvell CN10K support

2021-02-10 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v4-v5 Fixed sparse warnings. v3-v4 Fixed compiler warnings. v2-v3 Reposting as a single thread. Rebased on top latest net-next branch. v1-v2 Fixed check-patch reported issues

[net-next v4 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-05 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 10 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.h| 4 +- .../ethernet

[net-next v4 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-05 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v4 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-05 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/nic/Makefile| 8 ++--- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 29

[net-next v4 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-05 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 43 +- .../ethernet/marvell/octeontx2/nic

[net-next v4 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-05 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v4 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-05 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v4 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-05 Thread Geetha sowjanya
support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 -- drivers

[net-next v4 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-05 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v4 00/14] Add Marvell CN10K support

2021-02-05 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v3-v4 Fixed compiler warnings. v2-v3 Reposting as a single thread. Rebased on top latest net-next branch. v1-v2 Fixed check-patch reported issues. Geetha sowjanya (6): oc

[net-next v4 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-05 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS| 1 + drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/oct

[net-next v4 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-05 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next v4 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-05 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../net/ethernet/marvell/octeontx2/nic/otx2

[net-next v4 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX

2021-02-05 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next v4 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-05 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v4 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-05 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[net-next v3 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-04 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 43 +- .../ethernet/marvell/octeontx2/nic

[net-next v3 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-04 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v3 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-04 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v3 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-04 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 10 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.h| 4 +- .../ethernet

[net-next v3 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-04 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v3 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-04 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS| 1 + drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/oct

[net-next v3 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-04 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next v3 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-04 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v3 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-04 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../net/ethernet/marvell/octeontx2/nic/otx2

[net-next v3 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-04 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v3 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-04 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[net-next v3 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-04 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next v3 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-04 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/nic/Makefile| 8 ++--- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 29

[net-next v3 00/14] Add Marvell CN10K support

2021-02-04 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v2-v3 Reposting as a single thread. Rebased on top latest net-next branch. v1-v2 Fixed check-patch reported issues. Geetha sowjanya (6): octeontx2-af: cn10k: Add mbox s

[net-next v3 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-04 Thread Geetha sowjanya
support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 -- drivers

[net-next v2 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-01 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v2 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-01 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 10 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.h| 4 +- .../ethernet

[net-next v2 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-01 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v2 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-01 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 43 +- .../ethernet/marvell/octeontx2/nic

[net-next v2 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-01 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v2 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-01 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS| 1 + drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/oct

[net-next v2 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-01 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v2 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-01 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next v2 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-01 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../net/ethernet/marvell/octeontx2/nic/otx2

[net-next v2 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-01 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v2 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-01 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[net-next v2 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-01 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next v2 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-01 Thread Geetha sowjanya
support both CN9XX and CN10K platform. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 -- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 4 + drivers/net/ethernet/marvell

[net-next v2 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-01 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/nic/Makefile| 8 ++--- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 29

[net-next v2 00/14] Add Marvell CN10K support

2021-02-01 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v1-v2 Fixed check-patch reported issues. Geetha sowjanya (6): octeontx2-af: cn10k: Add mbox support for CN10K platform octeontx2-af: cn10k: Update NIX/NPA context

[net-next 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-01-30 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/

[net-next 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-01-30 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-01-30 Thread Geetha sowjanya
off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 42 -- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 2 +- .../net/ethernet/marvell/octeontx2/nic/otx

[net-next 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-01-30 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 14 ++ drivers/net/ethernet/ma

[net-next 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-01-30 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Geetha sowjanya --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 10 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.h| 4 +- .../ethernet/marvell

[net-next 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-01-30 Thread Geetha sowjanya
support both CN9XX and CN10K platform. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 -- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 4 + drivers/net/ethernet/marvell

[net-next 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-01-30 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-01-30 Thread Geetha sowjanya
: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 29 +++-- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 18 --- .../net/ethernet/marvell/octeontx2/nic/otx2_reg.h | 3 ++ .../net/ethernet/marvell/octeontx2/nic

[net-next 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-01-30 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-01-30 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-01-30 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[net-next 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-01-30 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-01-30 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../net/ethernet/marvell/octeontx2/nic/otx2

[net-next 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-01-30 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next 00/14] Add Marvell CN10K support

2021-01-30 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration Geetha sowjanya (6): octeontx2-af: cn10k: Update NIX/NPA context structure octeontx2-af: cn10k: Update NIX and NPA context in debugfs octeontx2-pf: cn10k: Initialise N

[PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-03 Thread Geetha sowjanya
v4 - Fixed compiletime warning. - Address Saeed's comments on v3. v3 - Coverted otx2_set_rxfh() to use new function. v2 - Removed unrelated whitespace - Coverted otx2_get_rxfh() to use new function. Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Geetha sowjanya --- .../ethernet/marvel

[PATCHv4 net-next] octeontx2-pf: Add RSS multi group support

2020-12-14 Thread Geetha sowjanya
v4 - Fixed compiletime warning. - Address Saeed's comments on v3. v3 - Coverted otx2_set_rxfh() to use new function. v2 - Removed unrelated whitespace - Coverted otx2_get_rxfh() to use new function. Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Geetha sowjanya --- .../ethernet/marvel

[PATCHv3 net-next] octeontx2-pf: Add RSS multi group support

2020-12-09 Thread Geetha sowjanya
- Removed unrelated whitespace - Coverted otx2_get_rxfh() to use new function. v3 - Coverted otx2_set_rxfh() to use new function. Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Geetha sowjanya --- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 26 +++-- .../ethernet/marvell/oct

[PATCH v2] octeontx2-pf: Add RSS multi group support

2020-12-07 Thread Geetha sowjanya
- Removed unrelated whitespace - Coverted otx2_get_rxfh() to use new function. Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Geetha sowjanya --- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 26 +++-- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 11 +- .../ethernet/marvell

[PATCH] octeontx2-pf: Add RSS multi group support

2020-12-04 Thread Geetha sowjanya
il Kovvuri Goutham Signed-off-by: Geetha sowjanya --- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 26 +++-- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 11 +- .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 124 - .../ethernet/marvell/octeontx2/nic/ot

[net PATCH v2 4/4] octeontx2-pf: Fix synchnorization issue in mbox

2020-09-30 Thread Geetha sowjanya
prasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 12 ++-- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 1 + drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 11 ++- drivers/net/ethern

[net PATCH v2 2/4] octeontx2-pf: Fix TCP/UDP checksum offload for IPv6 frames

2020-09-30 Thread Geetha sowjanya
x2-pf: Add packet transmission support") Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethern

[net PATCH v2 3/4] octeontx2-pf: Fix the device state on error

2020-09-30 Thread Geetha sowjanya
Fixes: 50fe6c02e ("octeontx2-pf: Register and handle link notifications") Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

  1   2   >