/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2019-2020 Broadcom
+ * Copyright(c) 2019-2021 Broadcom
* All rights reserved.
*/
/**
* IF Table DBs.
+ * TODO: Store this data in session db
*/
static void *if_tbl_db[TF_DIR_MAX];
-/**
- * IF Table Shadow DBs
- */
-/* static void *shadow_if_tbl_db[TF_DIR_MAX]; */
-
/**
* Init flag, set on bind and cleared on unbind
+ * TODO: Store this data in session db
*/
static uint8_t init;
-/**
- * Shadow init flag, set on bind and cleared on unbind
- */
-/* static uint8_t shadow_init; */
-
/**
* Convert if_tbl_type to hwrm type.
*
{
TF_CHECK_PARMS2(tfp, parms);
- if (init) {
- TFP_DRV_LOG(ERR,
- "IF TBL DB already initialized\n");
- return -EINVAL;
- }
-
if_tbl_db[TF_DIR_RX] = parms->cfg;
if_tbl_db[TF_DIR_TX] = parms->cfg;
tf_if_tbl_get(struct tf *tfp,
struct tf_if_tbl_get_parms *parms)
{
- int rc;
+ int rc = 0;
struct tf_if_tbl_get_hcapi_parms hparms;
TF_CHECK_PARMS3(tfp, parms, parms->data);