net/bnxt: support ULP session manager init
authorVenkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Wed, 15 Apr 2020 08:18:53 +0000 (13:48 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commit313ac35ac70112fc86703d76a65e0e252dca6590
tree6eff41470c6a55cce7464ede63cfa1ef2db6af6e
parent7b094065372062956f75301a821bf50f8f4b3d6c
net/bnxt: support ULP session manager init

A ULP session will contain all the resources needed to support
rte flow offloads. A session is initialized as part of rte_eth_device
start. A DPDK application can have multiple interfaces which
means rte_eth_device start will be called for each of these devices.
ULP session manager will make sure that a single ULP session is only
initialized once. Apart from this, it also initializes MARK database,
EEM table & flow database. ULP session manager also manages a list of
all opened ULP sessions.

Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
13 files changed:
drivers/net/bnxt/Makefile
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/tf_ulp/bnxt_tf_common.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/bnxt_ulp.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/bnxt_ulp.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_flow_db.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_flow_db.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_db.c [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_db.h [new file with mode: 0644]
drivers/net/bnxt/tf_ulp/ulp_template_struct.h [new file with mode: 0644]