Re: [PATCH v2 net-next 06/13] octeontx2-pf: Add support for unicast MAC address filtering

2020-11-10 Thread Naveen Mamindlapalli
Hi Saeed, Thanks for the review! > -Original Message- > From: Saeed Mahameed > Sent: Saturday, November 7, 2020 3:46 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutha

Re: [PATCH v2 net-next 09/13] octeontx2-pf: Implement ingress/egress VLAN offload

2020-11-10 Thread Naveen Mamindlapalli
Hi Saeed, Thanks for the review! > -Original Message- > From: Saeed Mahameed > Sent: Saturday, November 7, 2020 4:03 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutha

[PATCH v3 net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-10 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 4 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 78 ++ 3 files changed, 82 insertions

[PATCH v3 net-next 11/13] octeontx2-af: Handle PF-VF mac address changes

2020-11-10 Thread Naveen Mamindlapalli
;t be overwritten by VF. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 12 +++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 ++ drivers/net/ethernet/marvell/octeont

[PATCH v3 net-next 13/13] octeontx2-af: Delete NIX_RXVLAN_ALLOC mailbox message

2020-11-10 Thread Naveen Mamindlapalli
From: Subbaraya Sundeep Since mailbox message for installing flows is in place, remove the RXVLAN_ALLOC mbox message which is redundant. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v3 net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions

2020-11-10 Thread Naveen Mamindlapalli
valid MAC addr in nix_lf_start_rx function. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Tomasz Duszynski Signed-off-by: Tomasz Duszynski Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 1 + drivers/net/ethernet

[PATCH v3 net-next 12/13] octeontx2-af: Add new mbox messages to retrieve MCAM entries

2020-11-10 Thread Naveen Mamindlapalli
existing entry. Similarly while installing new flow rules for a VF, the base flow steering rule match creteria is copied to the new flow rule and the deltas are appended to the new rule. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Vamsi Attunuru Signed-off-by: Vamsi Attunuru Signed-off

[PATCH v3 net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-10 Thread Naveen Mamindlapalli
rt 23 mask 0x Forward to: PF1 VF0 action: Direct to queue 0 enabled: yes counter: 1 hits: 0 Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[PATCH v3 net-next 08/13] octeontx2-af: Modify nix_vtag_cfg mailbox to support TX VTAG entries

2020-11-10 Thread Naveen Mamindlapalli
insert. The mailbox response contains the entry index which is used by mailbox requester in configuring the NPC_TX_VTAG_ACTION for any MCAM entry. Signed-off-by: Vamsi Attunuru Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v3 net-next 09/13] octeontx2-pf: Implement ingress/egress VLAN offload

2020-11-10 Thread Naveen Mamindlapalli
outer vlan fields. The NIX PF allocates one MCAM entry for Rx VLAN offload. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c

[PATCH v3 net-next 06/13] octeontx2-pf: Add support for unicast MAC address filtering

2020-11-10 Thread Naveen Mamindlapalli
-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../ethernet/marvell/octeontx2/nic/otx2_flows.c| 120 - .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 15 ++- 3 files changed, 143 insertions

[PATCH v3 net-next 04/13] octeontx2-af: Add mbox messages to install and delete MCAM rules

2020-11-10 Thread Naveen Mamindlapalli
-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/common.h | 2 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 76 ++- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 57 +- drivers/net

[PATCH v3 net-next 05/13] octeontx2-pf: Add support for ethtool ntuple filters

2020-11-10 Thread Naveen Mamindlapalli
now and PF can install ntuple filters to direct the traffic to its VFs. Hence added a separate callback for VFs to get/set RSS configuration. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../net/ethernet/marvell/octeontx2/nic/Makefile

[PATCH v3 net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-10 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 48 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 38 ++ .../net/ethernet/marvell/octeontx2/af

[PATCH v3 net-next 00/13] Add ethtool ntuple filters support

2020-11-10 Thread Naveen Mamindlapalli
changes Naveen Mamindlapalli (2): octeontx2-pf: Add support for SR-IOV management functions octeontx2-af: Add new mbox messages to retrieve MCAM entries Stanislaw Kardach (1): octeontx2-af: Modify default KEX profile to extract TX packet fields Subbaraya Sundeep (6): octeontx2-af: Verify MC

[PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-10 Thread Naveen Mamindlapalli
which points to the tpid field. Signed-off-by: Stanislaw Kardach Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/npc_profile.h| 71 -- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 6 ++ 2 files changed, 72 inser

Re: [PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-14 Thread Naveen Mamindlapalli
Hi Alexander, Thanks for the review. > -Original Message- > From: Alexander Duyck > Sent: Friday, November 13, 2020 1:32 AM > To: Naveen Mamindlapalli > Cc: Netdev ; LKML ; > Jakub Kicinski ; David Miller ; > sa...@kernel.org; Sunil Kovvuri Goutham ; Linu >

Re: [PATCH v3 net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-14 Thread Naveen Mamindlapalli
Hi Alexander, > -Original Message- > From: Alexander Duyck > Sent: Friday, November 13, 2020 1:33 AM > To: Naveen Mamindlapalli > Cc: Netdev ; LKML ; > Jakub Kicinski ; David Miller ; > sa...@kernel.org; Sunil Kovvuri Goutham ; Linu > Cherian ; Geethasowjan

Re: [PATCH v3 net-next 04/13] octeontx2-af: Add mbox messages to install and delete MCAM rules

2020-11-14 Thread Naveen Mamindlapalli
Hi Alexander, Thanks for the review. > -Original Message- > From: Alexander Duyck > Sent: Friday, November 13, 2020 3:17 AM > To: Naveen Mamindlapalli > Cc: Netdev ; LKML ; > Jakub Kicinski ; David Miller ; > sa...@kernel.org; Sunil Kovvuri Goutham ; Linu >

Re: [PATCH v3 net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-14 Thread Naveen Mamindlapalli
Hi Alexander, Thanks for the review. > -Original Message- > From: Alexander Duyck > Sent: Friday, November 13, 2020 2:55 AM > To: Naveen Mamindlapalli > Cc: Netdev ; LKML ; > Jakub Kicinski ; David Miller ; > sa...@kernel.org; Sunil Kovvuri Goutham ; Linu >

Re: [PATCH v3 net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-14 Thread Naveen Mamindlapalli
Hi Saeed, > -Original Message- > From: Saeed Mahameed > Sent: Friday, November 13, 2020 1:18 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutham > ; Linu Cherian ; &

RE: [EXT] Re: [PATCH v3 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-14 Thread Naveen Mamindlapalli
Hi Saeed, Thanks for the review. > -Original Message- > From: Saeed Mahameed > Sent: Friday, November 13, 2020 1:27 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutha

RE: [EXT] Re: [PATCH v3 net-next 00/13] Add ethtool ntuple filters support

2020-11-14 Thread Naveen Mamindlapalli
Hi Saeed, Thanks for the review. > -Original Message- > From: Saeed Mahameed > Sent: Friday, November 13, 2020 1:47 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutha

Re: [PATCH v3 net-next 00/13] Add ethtool ntuple filters support

2020-11-14 Thread Naveen Mamindlapalli
Hi Saeed, Thanks for the review. > -Original Message- > From: Saeed Mahameed > Sent: Friday, November 13, 2020 1:47 AM > To: Naveen Mamindlapalli ; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org > Cc: k...@kernel.org; da...@davemloft.net; Sunil Kovvuri Goutha

[PATCH v4 net-next 11/13] octeontx2-af: Handle PF-VF mac address changes

2020-11-14 Thread Naveen Mamindlapalli
;t be overwritten by VF. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 12 +++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 ++ drivers/net/ethernet/marvell/octeont

[PATCH v4 net-next 06/13] octeontx2-pf: Add support for unicast MAC address filtering

2020-11-14 Thread Naveen Mamindlapalli
-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../ethernet/marvell/octeontx2/nic/otx2_flows.c| 120 - .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 15 ++- 3 files changed, 143 insertions

[PATCH v4 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-14 Thread Naveen Mamindlapalli
ed to point LB_PTR to the starting byte offset of VLAN header which points to the tpid field. Signed-off-by: Stanislaw Kardach Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 31 +++ .../ethernet/marvell/octeont

[PATCH v4 net-next 13/13] octeontx2-af: Delete NIX_RXVLAN_ALLOC mailbox message

2020-11-14 Thread Naveen Mamindlapalli
From: Subbaraya Sundeep Since mailbox message for installing flows is in place, remove the RXVLAN_ALLOC mbox message which is redundant. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v4 net-next 08/13] octeontx2-af: Modify nix_vtag_cfg mailbox to support TX VTAG entries

2020-11-14 Thread Naveen Mamindlapalli
insert. The mailbox response contains the entry index which is used by mailbox requester in configuring the NPC_TX_VTAG_ACTION for any MCAM entry. Signed-off-by: Vamsi Attunuru Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v4 net-next 09/13] octeontx2-pf: Implement ingress/egress VLAN offload

2020-11-14 Thread Naveen Mamindlapalli
outer vlan fields. The NIX PF allocates one MCAM entry for Rx VLAN offload. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c

[PATCH v4 net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-14 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 4 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 78 ++ 3 files changed, 82 insertions

[PATCH v4 net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions

2020-11-14 Thread Naveen Mamindlapalli
valid MAC addr in nix_lf_start_rx function. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Tomasz Duszynski Signed-off-by: Tomasz Duszynski Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 1 + drivers/net/ethernet

[PATCH v4 net-next 12/13] octeontx2-af: Add new mbox messages to retrieve MCAM entries

2020-11-14 Thread Naveen Mamindlapalli
existing entry. Similarly while installing new flow rules for a VF, the base flow steering rule match creteria is copied to the new flow rule and the deltas are appended to the new rule. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Vamsi Attunuru Signed-off-by: Vamsi Attunuru Signed-off

[PATCH v4 net-next 04/13] octeontx2-af: Add mbox messages to install and delete MCAM rules

2020-11-14 Thread Naveen Mamindlapalli
-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/common.h | 2 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 76 ++- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 57 +- drivers/net

[PATCH v4 net-next 05/13] octeontx2-pf: Add support for ethtool ntuple filters

2020-11-14 Thread Naveen Mamindlapalli
now and PF can install ntuple filters to direct the traffic to its VFs. Hence added a separate callback for VFs to get/set RSS configuration. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../net/ethernet/marvell/octeontx2/nic/Makefile

[PATCH v4 net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-14 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 48 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 38 ++ .../net/ethernet/marvell/octeontx2/af

[PATCH v4 net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-14 Thread Naveen Mamindlapalli
rt 23 mask 0x Forward to: PF1 VF0 action: Direct to queue 0 enabled: yes counter: 1 hits: 0 Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[PATCH v4 net-next 00/13] Add ethtool ntuple filters support

2020-11-14 Thread Naveen Mamindlapalli
address filtering octeontx2-pf: Implement ingress/egress VLAN offload octeontx2-af: Handle PF-VF mac address changes Naveen Mamindlapalli (2): octeontx2-pf: Add support for SR-IOV management functions octeontx2-af: Add new mbox messages to retrieve MCAM entries Stanislaw Kardach (1): oc

[PATCH] octeontx2-pf: Add flow classification using IP next level protocol

2021-01-11 Thread Naveen Mamindlapalli
the field is not extracted into MCAM search key. Modified npc_check_field function to return bool. Signed-off-by: Naveen Mamindlapalli Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 5 + .../ethernet/marvell/octeontx2/af/rvu_debugfs.c| 1 + .../ne

[PATCH net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-01 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 4 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 78 ++ 3 files changed, 82 insertions

[PATCH net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-01 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 19 + drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 69 +++ .../net/ethernet/marvell/octeontx2/af

[PATCH net-next 00/13] Add ethtool ntuple filters support

2020-11-01 Thread Naveen Mamindlapalli
. * Patch 12 adds support to read the MCAM entries. Misc: * Removed redundant mailbox NIX_RXVLAN_ALLOC. Hariprasad Kelam (3): octeontx2-pf: Add support for unicast MAC address filtering octeontx2-pf: Implement ingress/egress VLAN offload octeontx2-af: Handle PF-VF mac address changes Naveen

[PATCH net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-01 Thread Naveen Mamindlapalli
which points to the tpid field. Signed-off-by: Stanislaw Kardach Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/npc_profile.h| 71 -- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 6 ++ 2 files changed, 72 inser

[PATCH net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-01 Thread Naveen Mamindlapalli
rt 23 mask 0x Forward to: PF1 VF0 action: Direct to queue 0 enabled: yes counter: 1 hits: 0 Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[PATCH net-next 08/13] octeontx2-af: Modify nix_vtag_cfg mailbox to support TX VTAG entries

2020-11-01 Thread Naveen Mamindlapalli
insert. The mailbox response contains the entry index which is used by mailbox requester in configuring the NPC_TX_VTAG_ACTION for any MCAM entry. Signed-off-by: Vamsi Attunuru Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH net-next 13/13] octeontx2-af: Delete NIX_RXVLAN_ALLOC mailbox message

2020-11-01 Thread Naveen Mamindlapalli
From: Subbaraya Sundeep Since mailbox message for installing flows is in place, remove the RXVLAN_ALLOC mbox message which is redundant. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH net-next 06/13] octeontx2-pf: Add support for unicast MAC address filtering

2020-11-01 Thread Naveen Mamindlapalli
-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 10 ++ .../ethernet/marvell/octeontx2/nic/otx2_flows.c| 138 +++-- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 + 3 files changed, 146 insertions

[PATCH net-next 09/13] octeontx2-pf: Implement ingress/egress VLAN offload

2020-11-01 Thread Naveen Mamindlapalli
outer vlan fields. The NIX PF allocates one MCAM entry for Rx VLAN offload. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c

[PATCH net-next 05/13] octeontx2-pf: Add support for ethtool ntuple filters

2020-11-01 Thread Naveen Mamindlapalli
now and PF can install ntuple filters to direct the traffic to its VFs. Hence added a separate callback for VFs to get/set RSS configuration. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../net/ethernet/marvell/octeontx2/nic/Makefile

[PATCH net-next 04/13] octeontx2-af: Add mbox messages to install and delete MCAM rules

2020-11-01 Thread Naveen Mamindlapalli
-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/common.h | 2 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 76 ++- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 57 +- drivers/net

[PATCH net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions

2020-11-01 Thread Naveen Mamindlapalli
valid MAC addr in nix_lf_start_rx function. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Tomasz Duszynski Signed-off-by: Tomasz Duszynski Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 1 + drivers/net/ethernet

[PATCH net-next 11/13] octeontx2-af: Handle PF-VF mac address changes

2020-11-01 Thread Naveen Mamindlapalli
;t be overwritten by VF. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 12 +++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 ++ drivers/net/ethernet/marvell/octeont

[PATCH net-next 12/13] octeontx2-af: Add new mbox messages to retrieve MCAM entries

2020-11-01 Thread Naveen Mamindlapalli
existing entry. Similarly while installing new flow rules for a VF, the base flow steering rule match creteria is copied to the new flow rule and the deltas are appended to the new rule. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Vamsi Attunuru Signed-off-by: Vamsi Attunuru Signed-off

Re: [PATCH net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-02 Thread Naveen Mamindlapalli
Hi Jakub, > -Original Message- > From: Jakub Kicinski > Sent: Monday, November 2, 2020 11:23 PM > To: Naveen Mamindlapalli > Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; > da...@davemloft.net; Sunil Kovvuri Goutham ; Linu > Cherian ; Geethasowjanya

Re: [PATCH net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-02 Thread Naveen Mamindlapalli
Hi Jakub, > -Original Message- > From: Jakub Kicinski > Sent: Monday, November 2, 2020 11:24 PM > To: Naveen Mamindlapalli > Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; > da...@davemloft.net; Sunil Kovvuri Goutham ; Linu > Cherian ; Geethasowjanya

Re: [PATCH net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions

2020-11-02 Thread Naveen Mamindlapalli
Hi Jakub, > -Original Message- > From: Jakub Kicinski > Sent: Monday, November 2, 2020 11:25 PM > To: Naveen Mamindlapalli > Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; > da...@davemloft.net; Sunil Kovvuri Goutham ; Linu > Cherian ; Geethasowjanya

[PATCH v2 net-next 07/13] octeontx2-af: Add debugfs entry to dump the MCAM rules

2020-11-05 Thread Naveen Mamindlapalli
rt 23 mask 0x Forward to: PF1 VF0 action: Direct to queue 0 enabled: yes counter: 1 hits: 0 Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[PATCH v2 net-next 03/13] octeontx2-af: Generate key field bit mask from KEX profile

2020-11-05 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 48 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 38 ++ .../net/ethernet/marvell/octeontx2/af

[PATCH v2 net-next 08/13] octeontx2-af: Modify nix_vtag_cfg mailbox to support TX VTAG entries

2020-11-05 Thread Naveen Mamindlapalli
insert. The mailbox response contains the entry index which is used by mailbox requester in configuring the NPC_TX_VTAG_ACTION for any MCAM entry. Signed-off-by: Vamsi Attunuru Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v2 net-next 00/13] Add ethtool ntuple filters support

2020-11-05 Thread Naveen Mamindlapalli
octeontx2-af: Handle PF-VF mac address changes Naveen Mamindlapalli (2): octeontx2-pf: Add support for SR-IOV management functions octeontx2-af: Add new mbox messages to retrieve MCAM entries Stanislaw Kardach (1): octeontx2-af: Modify default KEX profile to extract TX packet fields

[PATCH v2 net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

2020-11-05 Thread Naveen Mamindlapalli
Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 4 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 78 ++ 3 files changed, 82 insertions

[PATCH v2 net-next 01/13] octeontx2-af: Modify default KEX profile to extract TX packet fields

2020-11-05 Thread Naveen Mamindlapalli
which points to the tpid field. Signed-off-by: Stanislaw Kardach Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/npc_profile.h| 71 -- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 6 ++ 2 files changed, 72 inser

[PATCH v2 net-next 13/13] octeontx2-af: Delete NIX_RXVLAN_ALLOC mailbox message

2020-11-05 Thread Naveen Mamindlapalli
From: Subbaraya Sundeep Since mailbox message for installing flows is in place, remove the RXVLAN_ALLOC mbox message which is redundant. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h

[PATCH v2 net-next 09/13] octeontx2-pf: Implement ingress/egress VLAN offload

2020-11-05 Thread Naveen Mamindlapalli
outer vlan fields. The NIX PF allocates one MCAM entry for Rx VLAN offload. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c

[PATCH v2 net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions

2020-11-05 Thread Naveen Mamindlapalli
valid MAC addr in nix_lf_start_rx function. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Tomasz Duszynski Signed-off-by: Tomasz Duszynski Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 1 + drivers/net/ethernet

[PATCH v2 net-next 06/13] octeontx2-pf: Add support for unicast MAC address filtering

2020-11-05 Thread Naveen Mamindlapalli
-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 10 ++ .../ethernet/marvell/octeontx2/nic/otx2_flows.c| 138 +++-- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 + 3 files changed, 146 insertions

[PATCH v2 net-next 05/13] octeontx2-pf: Add support for ethtool ntuple filters

2020-11-05 Thread Naveen Mamindlapalli
now and PF can install ntuple filters to direct the traffic to its VFs. Hence added a separate callback for VFs to get/set RSS configuration. Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../net/ethernet/marvell/octeontx2/nic/Makefile

[PATCH v2 net-next 12/13] octeontx2-af: Add new mbox messages to retrieve MCAM entries

2020-11-05 Thread Naveen Mamindlapalli
existing entry. Similarly while installing new flow rules for a VF, the base flow steering rule match creteria is copied to the new flow rule and the deltas are appended to the new rule. Signed-off-by: Naveen Mamindlapalli Co-developed-by: Vamsi Attunuru Signed-off-by: Vamsi Attunuru Signed-off

[PATCH v2 net-next 04/13] octeontx2-af: Add mbox messages to install and delete MCAM rules

2020-11-05 Thread Naveen Mamindlapalli
-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/common.h | 2 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 76 ++- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 57 +- drivers/net

[PATCH v2 net-next 11/13] octeontx2-af: Handle PF-VF mac address changes

2020-11-05 Thread Naveen Mamindlapalli
;t be overwritten by VF. Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 12 +++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 2 ++ drivers/net/ethernet/marvell/octeont

tc flower offload rule priority

2021-03-15 Thread Naveen Mamindlapalli
Hi, I am new to the tc subsystem and trying to understand tc rule priorities for hardware offloading. I can see that the tc flower classifier rules are added with a default priority value of 49152 (low priority) and then the priority is increased for subsequent rules. When offloading tc flower rul

[PATCH net-next 1/5] octeontx2-af: refactor function npc_install_flow for default entry

2021-03-17 Thread Naveen Mamindlapalli
AF. Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 5 +++ drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 14 +-- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c| 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 47

[PATCH net-next 0/5] refactor code related to npc install flow

2021-03-17 Thread Naveen Mamindlapalli
, Pradeep (1): octeontx2-af: Add support for multi channel in NIX promisc entry Naveen Mamindlapalli (3): octeontx2-af: refactor function npc_install_flow for default entry octeontx2-af: Use npc_install_flow API for promisc and broadcast entries octeontx2-af: Modify the return code for

[PATCH net-next 2/5] octeontx2-af: Add support for multi channel in NIX promisc entry

2021-03-17 Thread Naveen Mamindlapalli
ilable for the interface. Key mask is modified such that incoming packets from channel base to channel count are directed to the same pci function. Signed-off-by: Nalla, Pradeep Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 3 ++- drivers/ne

[PATCH net-next 5/5] octeontx2-af: Modify the return code for unsupported flow keys

2021-03-17 Thread Naveen Mamindlapalli
The mbox handler npc_install_flow returns ENOTSUPP for unsupported flow keys. This patch modifies the return value to AF driver defined error code for debugging purpose. Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 1 + drivers/net/ethernet

[PATCH net-next 3/5] octeontx2-af: Use npc_install_flow API for promisc and broadcast entries

2021-03-17 Thread Naveen Mamindlapalli
npc_install_flow_req to calculate channel mask when channel count is greater than 1 and configure the channel mask in entry kw_mask. Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 1 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 107

[PATCH net-next 4/5] octeontx2-af: Avoid duplicate unicast rule in mcam_rules list

2021-03-17 Thread Naveen Mamindlapalli
detach-attach sequence. When that happens mcam_rules list end up with two default unicast rules. Fix the problem by deleting the default unicast rule list node always when disabling mcam rules. Signed-off-by: Subbaraya Sundeep Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/m

[PATCH net-next 0/4] Add tc hardware offloads

2021-03-18 Thread Naveen Mamindlapalli
ified interface. Naveen Mamindlapalli (3): octeontx2-pf: Add ip tos and ip proto icmp/icmpv6 flow offload support octeontx2-pf: Add tc flower hardware offload on ingress traffic octeontx2-pf: add tc flower stats handler for hw offloads Sunil Goutham (1): octeontx2-pf: TC_MATCHALL egress ratelim

[PATCH net-next 1/4] octeontx2-pf: Add ip tos and ip proto icmp/icmpv6 flow offload support

2021-03-18 Thread Naveen Mamindlapalli
flow-type ip4 tos 8 vf 0 queue 0 Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell/octeontx2/af/npc.h| 2 ++ .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 17 +++-- .../ethernet/marvell/octeontx2/nic/otx2_flows.c| 42 -- 3 files changed

[PATCH net-next 2/4] octeontx2-pf: Add tc flower hardware offload on ingress traffic

2021-03-18 Thread Naveen Mamindlapalli
1 # tc filter del dev eth0 ingress protocol ip pref 49152 \ handle 1 flower Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c| 2 +- .../net/ethernet/marvell/octeontx2/nic/Makefile| 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.h

[PATCH net-next 4/4] octeontx2-pf: TC_MATCHALL egress ratelimiting offload

2021-03-18 Thread Naveen Mamindlapalli
skip_sw \ action police rate 100Mbit burst 16Kbit HW supports a max burst size of ~128KB. Only one ratelimiting filter can be installed at a time. Signed-off-by: Sunil Goutham Signed-off-by: Naveen Mamindlapalli --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 1 + .../net

[PATCH net-next 3/4] octeontx2-pf: add tc flower stats handler for hw offloads

2021-03-18 Thread Naveen Mamindlapalli
Add support to get the stats for tc flower flows that are offloaded to hardware. To support this feature, added a new AF mbox handler which returns the MCAM entry stats for a flow that has hardware stat counter enabled. Signed-off-by: Naveen Mamindlapalli --- drivers/net/ethernet/marvell