[PATCH net-next v2 13/14] octeontx2-af: Add LSO format configuration mailbox

2018-12-02 Thread Jerin Jacob
will be used in configuring the transmit descriptors. Add mailbox interface to dynamically reserve and configure LSO format. This commit also fixes 'sizem1' for NIX_LSOALG_TCP_FLAGS to '1' i.e 2 Bytes. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Goutham Signed

[PATCH net-next v2 14/14] octeontx2-af: Enable mkex profile

2018-12-02 Thread Jerin Jacob
profile on response to NPC_GET_KEX_CFG mailbox by introducing mkex_pfl_name in the struct npc_get_kex_cfg_rsp. Signed-off-by: Vamsi Attunuru Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 54 + .../net/ethernet/marvell/octeontx2/af/cgx.h | 1

[PATCH net-next v2 12/14] octeontx2-af: Add L3 and L4 packet verification mailbox

2018-12-02 Thread Jerin Jacob
From: Vidhya Raman Adds mailbox support for L4 checksum verification and L3 and L4 length verification configuration. Signed-off-by: Vidhya Raman Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/mbox.h | 10 + .../net/ethernet/marvell/octeontx2/af/rvu.h | 3

[PATCH net-next v2 06/14] octeontx2-af: Allow freeing single TLx Tx schedule queue

2018-12-02 Thread Jerin Jacob
From: Nithin Dabilpuram The default behavior was to free all the TLx Tx schedule queues. This patch adds support for freeing a single Tx schedule queue if TXSCHQ_FREE_ALL flag is not set. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob

[PATCH net-next v2 07/14] octeontx2-af: Enable inner IPv4 checksum and its error code

2018-12-02 Thread Jerin Jacob
This patch enables the inner IPv4 checksum and defines the error code for Rx inner and outer checksum errors. Setting ERRCODE as 1 so that CQE descriptor can be embedded valid checksum error code and the driver can interpret checksum error as ERRLEV = LID + 1 and ERRCODE = 1. Signed-off-by: Jerin

[PATCH net-next v2 08/14] octeontx2-af: Define all NIX_AF_RX_DEF_* registers

2018-12-02 Thread Jerin Jacob
In order to support all NIX specific valid length errors and checksum errors on Rx, Update all NIX_AF_RX_DEF_* registers. Also sorted all registers in HRM definition order. Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 25 +++ 1 file changed, 20

[PATCH net-next v2 09/14] octeontx2-af: Enable RSS with promiscuous mode

2018-12-02 Thread Jerin Jacob
From: Vamsi Attunuru This patch adds support for enabling RSS in promiscuous mode if RSS is already requested by the AF client. Signed-off-by: Vamsi Attunuru Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af/rvu_npc.c | 35 --- 1 file changed, 31 insertions

[PATCH net-next v2 10/14] octeontx2-af: Add support for Tx packet marking

2018-12-02 Thread Jerin Jacob
marker format such as VLAN DEI, IPv4 ECN, IPv4 DSCP are reserved for AF consumers. Signed-off-by: Krzysztof Kanas Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/mbox.h | 18 +++ .../net/ethernet/marvell/octeontx2/af/rvu.h | 12 ++ .../ethernet/marvell/octeontx2/af

[PATCH net-next v2 05/14] octeontx2-af: Restrict TL1 allocation and configuration

2018-12-02 Thread Jerin Jacob
. PF's can always overwrite the TL1 config. - Consider NIX_AQ_INSTOP_WRITE while validating txschq when sq.ena is set. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob --- v2: - Pack the arguments of rvu_get_tl1_schqs() function as 80 columns

[PATCH net-next v2 11/14] octeontx2-af: Configure VLAN TPIDs

2018-12-02 Thread Jerin Jacob
From: Nithin Dabilpuram Setup TPID's for vlan0 and vlan1 for Tx VLAN insertion offloads. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob --- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/ma

[PATCH net-next v2 04/14] octeontx2-af: Add support for runtime RSS algo index reservation

2018-12-02 Thread Jerin Jacob
consumers. The leftover algo indexes can be reserved at runtime through exiting nix_rss_flowkey_cfg mailbox message. The NIX_FLOW_KEY_TYPE_PORT is removed from predefined a set of RSS flow type as it is not used by any consumer. Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af

[PATCH net-next v2 02/14] octeontx2-af: Add response for RSS flow key cfg message

2018-12-02 Thread Jerin Jacob
space collisions, as we have various coming from include/uapi/linux/pkt_cls.h for example. Signed-off-by: Jerin Jacob --- v2: - Rename FLOW_* to NIX_FLOW_* to avoid serious global namespace collisions, as we have various FLOW_* definitions coming from include/uapi/linux/pkt_cls.h for example.(David

[PATCH net-next v2 03/14] octeontx2-af: Add support for dynamic flow cfg to RSS field generation

2018-12-02 Thread Jerin Jacob
-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram --- .../net/ethernet/marvell/octeontx2/af/mbox.h | 1 + .../ethernet/marvell/octeontx2/af/rvu_nix.c | 113 +- 2 files changed, 87 insertions(+), 27 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH net-next v2 01/14] octeontx2-af: Skip NIXLF check for bcast MCE entry

2018-12-02 Thread Jerin Jacob
unit i.e NPC. Signed-off-by: Sunil Goutham Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 14 +- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next v2 00/14] octeontx2-af: NIX and NPC enhancements

2018-12-02 Thread Jerin Jacob
uapi/linux/pkt_cls.h for example.(David Miller) - Pack the arguments of rvu_get_tl1_schqs() function as 80 columns allows.(David Miller) Jerin Jacob (5): octeontx2-af: Add response for RSS flow key cfg message octeontx2-af: Add support for dynamic flow cfg to RSS field generation octeont

[PATCH v1 net-next 14/14] octeontx2-af: Enable mkex profile

2018-12-01 Thread Jerin Jacob
profile on response to NPC_GET_KEX_CFG mailbox by introducing mkex_pfl_name in the struct npc_get_kex_cfg_rsp. Signed-off-by: Vamsi Attunuru Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 54 + .../net/ethernet/marvell/octeontx2/af/cgx.h | 1

[PATCH v1 net-next 13/14] octeontx2-af: Add LSO format configuration mailbox

2018-12-01 Thread Jerin Jacob
will be used in configuring the transmit descriptors. Add mailbox interface to dynamically reserve and configure LSO format. This commit also fixes 'sizem1' for NIX_LSOALG_TCP_FLAGS to '1' i.e 2 Bytes. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Goutham Signed

[PATCH v1 net-next 11/14] octeontx2-af: Configure VLAN TPIDs

2018-12-01 Thread Jerin Jacob
From: Nithin Dabilpuram Setup TPID's for vlan0 and vlan1 for Tx VLAN insertion offloads. Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob --- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/ma

[PATCH v1 net-next 12/14] octeontx2-af: Add L3 and L4 packet verification mailbox

2018-12-01 Thread Jerin Jacob
From: Vidhya Raman Adds mailbox support for L4 checksum verification and L3 and L4 length verification configuration. Signed-off-by: Vidhya Raman Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/mbox.h | 10 + .../net/ethernet/marvell/octeontx2/af/rvu.h | 3

[PATCH v1 net-next 08/14] octeontx2-af: Define all NIX_AF_RX_DEF_* registers

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob In order to support all NIX specific valid length errors and checksum errors on Rx, Update all NIX_AF_RX_DEF_* registers. Also sorted all registers in HRM definition order. Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 25

[PATCH v1 net-next 10/14] octeontx2-af: Add support for Tx packet marking

2018-12-01 Thread Jerin Jacob
marker format such as VLAN DEI, IPv4 ECN, IPv4 DSCP are reserved for AF consumers. Signed-off-by: Krzysztof Kanas Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/mbox.h | 18 +++ .../net/ethernet/marvell/octeontx2/af/rvu.h | 12 ++ .../ethernet/marvell/octeontx2/af

[PATCH v1 net-next 06/14] octeontx2-af: Allow freeing single TLx Tx schedule queue

2018-12-01 Thread Jerin Jacob
From: Nithin Dabilpuram The default behavior was to free all the TLx Tx schedule queues. This patch adds support for freeing a single Tx schedule queue if TXSCHQ_FREE_ALL flag is not set. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob

[PATCH v1 net-next 09/14] octeontx2-af: Enable RSS with promiscuous mode

2018-12-01 Thread Jerin Jacob
From: Vamsi Attunuru This patch adds support for enabling RSS in promiscuous mode if RSS is already requested by the AF client. Signed-off-by: Vamsi Attunuru Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af/rvu_npc.c | 35 --- 1 file changed, 31 insertions

[PATCH v1 net-next 03/14] octeontx2-af: Add support for dynamic flow cfg to RSS field generation

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob Introduce state-based algorithm to convert the flow_key value to RSS algo field used by NIX_AF_RX_FLOW_KEY_ALGX_FIELDX register. The outer `for loop` goes over _all_ protocol field and the following variables depict the state machine forward progress logic. a) keyoff_marker

[PATCH v1 net-next 07/14] octeontx2-af: Enable inner IPv4 checksum and its error code

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob This patch enables the inner IPv4 checksum and defines the error code for Rx inner and outer checksum errors. Setting ERRCODE as 1 so that CQE descriptor can be embedded valid checksum error code and the driver can interpret checksum error as ERRLEV = LID + 1 and ERRCODE = 1

[PATCH v1 net-next 05/14] octeontx2-af: Restrict TL1 allocation and configuration

2018-12-01 Thread Jerin Jacob
. PF's can always overwrite the TL1 config. - Consider NIX_AQ_INSTOP_WRITE while validating txschq when sq.ena is set. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram Signed-off-by: Jerin Jacob --- .../ethernet/marvell/octeontx2/af/common.h| 3 + .../net/ethernet/ma

[PATCH v1 net-next 04/14] octeontx2-af: Add support for runtime RSS algo index reservation

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob Introduced reserve_flowkey_alg_idx()to reserve RSS algorithm index, it would internally use set_flowkey_fields() to generate fields based on the flow key dynamically. On AF driver init, it would reserve a predefined set RSS algo indexes, which will be available all the time

[PATCH v1 net-next 00/14] octeontx2-af: NIX and NPC enhancements

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob This patchset is a continuation to earlier submitted four patch series to add a new driver for Marvell's OcteonTX2 SOC's Resource virtualization unit (RVU) admin function driver. 1. octeontx2-af: Add RVU Admin Function driver https://www.spinics.net/lists/netdev

[PATCH v1 net-next 01/14] octeontx2-af: Skip NIXLF check for bcast MCE entry

2018-12-01 Thread Jerin Jacob
unit i.e NPC. Signed-off-by: Sunil Goutham Signed-off-by: Jerin Jacob --- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 14 +- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet

[PATCH v1 net-next 02/14] octeontx2-af: Add response for RSS flow key cfg message

2018-12-01 Thread Jerin Jacob
From: Jerin Jacob Added response for nix_rss_flowkey_cfg message to return selected RSS algorithm index. The FLOW_KEY_TYPE* definition is part of the mbox message and it will be used by the other consumers of AF driver hence moving to mbox.h. Signed-off-by: Jerin Jacob --- drivers/net