From: Wei Fang <wei…@nxp.com>
Current SoCs only implement VFT version 0, but future versions may
extend the table with a different buffer layout and size. Today struct
vft_cfge_data is the hardware CFGE structure, so callers must know the
wire format and open-code endianness conversions. This interface is
hard to extend: once a new version changes the buffer layout or size,
updating the callers becomes cumbersome.
Add a version-agnostic struct vft_entry_data that uses native CPU types
and also carries the VLAN ID, and move the wire structure into
ntmp_private.h to keep it internal to the NTMP layer. Add a struct
ntmp_tbl_ops instance holding the buffer size and a pack() callback, and
select it via ntmp_get_vft_ops(), following the MAFT, IPFT and FDBT
tables.
Reshape the VFT interface around the logical config. ntmp_vft_add_entry()
and ntmp_vft_update_entry() now take a struct vft_entry_data pointer
instead of a VLAN ID and a separate cfge pointer. Note that the command
in ntmp_vft_add_entry() has been changed NTMP_CMD_AQ. This allows the
NETC switch driver to track the ID of each entry and access thoes entries
using the entry ID match method.
A future version can then be added within the NTMP layer by providing
its wire structure, pack helper and ops instance. Callers may still need
small adjustments, but they no longer deal with the wire format or
endianness.
Signed-off-by: Wei Fang <wei…@nxp.com>
---
drivers/net/dsa/netc/netc_main.c | 83 +++++-------
drivers/net/dsa/netc/netc_switch.h | 3 +-
drivers/net/ethernet/freescale/enetc/ntmp.c | 120 ++++++++++++++----
.../ethernet/freescale/enetc/ntmp_private.h | 17 +++
include/linux/fsl/ntmp.h | 25 ++--
5 files changed, 161 insertions(+), 87 deletions(-)
diff --git a/drivers/net/dsa/netc/netc_main.c b/drivers/net/dsa/netc/netc_main.c
index 9573672d65a3f..ce29b586f3c13 100644
--- a/drivers/net/dsa/netc/netc_main.c
+++ b/drivers/net/dsa/netc/netc_main.c
@@ -43,7 +43,7 @@ netc_lookup_vlan_entry(struct netc_switch *priv, u16 vid)
struct netc_vlan_entry *entry;
hlist_for_each_entry(entry, &priv->vlan_list, node)
- if (entry->vid == vid)
+ if (entry->data.vid == vid)
return entry;
return NULL;
@@ -699,18 +699,17 @@ static u32 netc_available_port_bitmap(struct netc_switch *priv)
static int netc_add_standalone_vlan_entry(struct netc_switch *priv)
{
- u32 bitmap_stg = VFT_STG_ID(0) | netc_available_port_bitmap(priv);
- struct vft_cfge_data *cfge;
- u16 cfg;
+ struct vft_entry_data *entry;
int err;
- cfge = kzalloc_obj(*cfge);
- if (!cfge)
+ entry = kzalloc_obj(*entry);
+ if (!entry)
return -ENOMEM;
- cfge->bitmap_stg = cpu_to_le32(bitmap_stg);
- cfge->et_eid = cpu_to_le32(NTMP_NULL_ENTRY_ID);
- cfge->fid = cpu_to_le16(NETC_STANDALONE_PVID);
+ entry->vid = NETC_STANDALONE_PVID;
+ entry->bitmap_stg = VFT_STG_ID(0) | netc_available_port_bitmap(priv);
+ entry->et_eid = NTMP_NULL_ENTRY_ID;
+ entry->fid = NETC_STANDALONE_PVID;
/* For standalone ports, MAC learning needs to be disabled, so frames
* from other user ports will not be forwarded to the standalone ports,
@@ -720,16 +719,15 @@ static int netc_add_standalone_vlan_entry(struct netc_switch *priv)
* MFO_NO_MATCH_DISCARD, so the frames will be discarded rather than
* flooding to other ports.
*/
- cfg = FIELD_PREP(VFT_MLO, MLO_DISABLE) |
- FIELD_PREP(VFT_MFO, MFO_NO_MATCH_DISCARD);
- cfge->cfg = cpu_to_le16(cfg);
+ entry->cfg = FIELD_PREP(VFT_MLO, MLO_DISABLE) |
+ FIELD_PREP(VFT_MFO, MFO_NO_MATCH_DISCARD);
- err = ntmp_vft_add_entry(&priv->ntmp, NETC_STANDALONE_PVID, cfge);
+ err = ntmp_vft_add_entry(&priv->ntmp, entry);
if (err)
dev_err(priv->dev,
"Failed to add standalone VLAN entry\n");
- kfree(cfge);
+ kfree(entry);
return err;
}
@@ -1385,7 +1383,7 @@ static int netc_add_vlan_egress_rule(struct netc_switch *priv,
if (err)
goto clear_ett_gid;
- entry->cfge.et_eid = cpu_to_le32(ett_eid);
+ entry->data.et_eid = ett_eid;
entry->ect_gid = ect_gid;
return 0;
@@ -1407,7 +1405,7 @@ static void netc_delete_vlan_egress_rule(struct netc_switch *priv,
struct ntmp_user *ntmp = &priv->ntmp;
u32 ett_eid, ett_gid;
- ett_eid = le32_to_cpu(entry->cfge.et_eid);
+ ett_eid = entry->data.et_eid;
if (ett_eid == NTMP_NULL_ENTRY_ID)
return;
@@ -1427,8 +1425,8 @@ static int netc_port_update_vlan_egress_rule(struct netc_port *np,
{
bool untagged = !!(entry->untagged_port_bitmap & BIT(np->dp->index));
u32 num_ports = netc_num_available_ports(np->switch_priv);
- u32 ett_eid = le32_to_cpu(entry->cfge.et_eid);
struct netc_switch *priv = np->switch_priv;
+ u32 ett_eid = entry->data.et_eid;
u32 ect_eid = NTMP_NULL_ENTRY_ID;
int err;
@@ -1447,7 +1445,7 @@ static int netc_port_update_vlan_egress_rule(struct netc_port *np,
if (err) {
dev_err(priv->dev,
"Failed to update VLAN %u egress rule on port %d\n",
- entry->vid, np->dp->index);
+ entry->data.vid, np->dp->index);
return err;
}
@@ -1462,20 +1460,15 @@ static int netc_port_add_vlan_entry(struct netc_port *np, u16 vid,
{
struct netc_switch *priv = np->switch_priv;
struct netc_vlan_entry *entry;
- struct vft_cfge_data *cfge;
u32 index = np->dp->index;
- u32 bitmap_stg;
int err;
- u16 cfg;
entry = kzalloc_obj(*entry);
if (!entry)
return -ENOMEM;
- entry->vid = vid;
entry->ect_gid = NTMP_NULL_ENTRY_ID;
-
- bitmap_stg = BIT(index) | VFT_STG_ID(0);
+ entry->data.bitmap_stg = BIT(index) | VFT_STG_ID(0);
/* If the VID is a VLAN-unaware PVID, the CPU port needs to be
* a member of this VLAN.
*/
@@ -1483,18 +1476,15 @@ static int netc_port_add_vlan_entry(struct netc_port *np, u16 vid,
vid >= NETC_VLAN_UNAWARE_PVID(priv->ds->max_num_bridges)) {
struct dsa_port *cpu_dp = np->dp->cpu_dp;
- bitmap_stg |= BIT(cpu_dp->index);
+ entry->data.bitmap_stg |= BIT(cpu_dp->index);
}
- cfg = FIELD_PREP(VFT_MLO, MLO_HW) |
- FIELD_PREP(VFT_MFO, MFO_NO_MATCH_FLOOD);
-
- cfge = &entry->cfge;
- cfge->et_eid = cpu_to_le32(NTMP_NULL_ENTRY_ID);
- cfge->bitmap_stg = cpu_to_le32(bitmap_stg);
- cfge->fid = cpu_to_le16(vid);
- cfge->cfg = cpu_to_le16(cfg);
- cfge->eta_port_bitmap = cpu_to_le32(priv->port_bitmap);
+ entry->data.vid = vid;
+ entry->data.et_eid = NTMP_NULL_ENTRY_ID;
+ entry->data.fid = vid;
+ entry->data.cfg = FIELD_PREP(VFT_MLO, MLO_HW) |
+ FIELD_PREP(VFT_MFO, MFO_NO_MATCH_FLOOD);
+ entry->data.eta_port_bitmap = priv->port_bitmap;
if (untagged)
entry->untagged_port_bitmap = BIT(index);
@@ -1503,7 +1493,7 @@ static int netc_port_add_vlan_entry(struct netc_port *np, u16 vid,
if (err)
goto free_vlan_entry;
- err = ntmp_vft_add_entry(&priv->ntmp, vid, cfge);
+ err = ntmp_vft_add_entry(&priv->ntmp, &entry->data);
if (err) {
dev_err(priv->dev,
"Failed to add VLAN %u entry on port %d\n",
@@ -1528,9 +1518,10 @@ static bool netc_port_vlan_egress_rule_changed(struct netc_switch *priv,
int port, bool untagged)
{
bool old_untagged = !!(entry->untagged_port_bitmap & BIT(port));
+ u16 vid = entry->data.vid;
/* VLAN-unaware VIDs have no egress rules, so return 'false' */
- if (entry->vid >= NETC_VLAN_UNAWARE_PVID(priv->ds->max_num_bridges))
+ if (vid >= NETC_VLAN_UNAWARE_PVID(priv->ds->max_num_bridges))
return false;
return old_untagged != untagged;
@@ -1541,7 +1532,6 @@ static int netc_port_set_vlan_entry(struct netc_port *np, u16 vid,
{
struct netc_switch *priv = np->switch_priv;
struct netc_vlan_entry *entry;
- struct vft_cfge_data *cfge;
int port = np->dp->index;
bool changed;
int err = 0;
@@ -1566,12 +1556,11 @@ static int netc_port_set_vlan_entry(struct netc_port *np, u16 vid,
}
}
- cfge = &entry->cfge;
- if (cfge->bitmap_stg & cpu_to_le32(BIT(port)))
+ if (entry->data.bitmap_stg & BIT(port))
goto unlock_vft;
- cfge->bitmap_stg |= cpu_to_le32(BIT(port));
- err = ntmp_vft_update_entry(&priv->ntmp, vid, cfge);
+ entry->data.bitmap_stg |= BIT(port);
+ err = ntmp_vft_update_entry(&priv->ntmp, &entry->data);
if (err) {
dev_err(priv->dev,
"Failed to update VLAN %u entry on port %d\n",
@@ -1585,7 +1574,7 @@ static int netc_port_set_vlan_entry(struct netc_port *np, u16 vid,
return 0;
restore_bitmap_stg:
- cfge->bitmap_stg &= cpu_to_le32(~BIT(port));
+ entry->data.bitmap_stg &= ~BIT(port);
if (changed) {
entry->untagged_port_bitmap ^= BIT(port);
/* Recover the corresponding ETT entry. It doesn't matter
@@ -1606,7 +1595,6 @@ static int netc_port_del_vlan_entry(struct netc_port *np, u16 vid)
{
struct netc_switch *priv = np->switch_priv;
struct netc_vlan_entry *entry;
- struct vft_cfge_data *cfge;
int port = np->dp->index;
u32 vlan_port_bitmap;
int err = 0;
@@ -1617,9 +1605,8 @@ static int netc_port_del_vlan_entry(struct netc_port *np, u16 vid)
if (!entry)
goto unlock_vft;
- cfge = &entry->cfge;
vlan_port_bitmap = FIELD_GET(VFT_PORT_MEMBERSHIP,
- le32_to_cpu(cfge->bitmap_stg));
+ entry->data.bitmap_stg);
/* If the VID is a VLAN-unaware PVID, we need to clear the CPU
* port bit of vlan_port_bitmap, so that the VLAN entry can be
* deleted if no user ports use this VLAN.
@@ -1646,10 +1633,10 @@ static int netc_port_del_vlan_entry(struct netc_port *np, u16 vid)
if (!(vlan_port_bitmap & BIT(port)))
goto unlock_vft;
- cfge->bitmap_stg &= cpu_to_le32(~BIT(port));
- err = ntmp_vft_update_entry(&priv->ntmp, vid, cfge);
+ entry->data.bitmap_stg &= ~BIT(port);
+ err = ntmp_vft_update_entry(&priv->ntmp, &entry->data);
if (err) {
- cfge->bitmap_stg |= cpu_to_le32(BIT(port));
+ entry->data.bitmap_stg |= BIT(port);
goto unlock_vft;
}
diff --git a/drivers/net/dsa/netc/netc_switch.h b/drivers/net/dsa/netc/netc_switch.h
index 3c8dd539ed830..c61d3e3a366a0 100644
--- a/drivers/net/dsa/netc/netc_switch.h
+++ b/drivers/net/dsa/netc/netc_switch.h
@@ -141,10 +141,9 @@ struct netc_fdb_entry {
};
struct netc_vlan_entry {
- u16 vid;
u32 ect_gid;
u32 untagged_port_bitmap;
- struct vft_cfge_data cfge;
+ struct vft_entry_data data;
struct hlist_node node;
};
diff --git a/drivers/net/ethernet/freescale/enetc/ntmp.c b/drivers/net/ethernet/freescale/enetc/ntmp.c
index 801e4e7bb8314..9d642dbf5e429 100644
--- a/drivers/net/ethernet/freescale/enetc/ntmp.c
+++ b/drivers/net/ethernet/freescale/enetc/ntmp.c
@@ -524,6 +524,62 @@ static const struct ntmp_tbl_ops *ntmp_get_fdbt_ops(u8 version)
}
}
+static void ntmp_vft_pack_v0(const void *entry, void *buf, int access_method)
+{
+ const struct vft_entry_data *e = entry;
+ struct vft_req_ua *req = buf;
+ struct vft_cfge_data *cfge;
+
+ /* Currently, there is no need to support NTMP_AM_ENTRY_ID */
+ if (access_method == NTMP_AM_EXACT_KEY)
+ req->ak.exact.vid = cpu_to_le16(e->vid);
+
+ cfge = &req->cfge;
+ cfge->bitmap_stg = cpu_to_le32(e->bitmap_stg);
+ cfge->fid = cpu_to_le16(e->fid);
+ cfge->cfg = cpu_to_le16(e->cfg);
+ cfge->eta_port_bitmap = cpu_to_le32(e->eta_port_bitmap);
+ cfge->et_eid = cpu_to_le32(e->et_eid);
+}
+
+static void ntmp_vft_unpack_v0(const void *buf, void *entry, bool only_eid)
+{
+ const struct vft_resp_query *resp = buf;
+ const struct vft_cfge_data *cfge;
+ struct vft_entry_data *e = entry;
+
+ e->entry_id = le32_to_cpu(resp->entry_id);
+ if (only_eid)
+ return;
+
+ e->status = le32_to_cpu(resp->status);
+ e->vid = le16_to_cpu(resp->vid);
+
+ cfge = &resp->cfge;
+ e->bitmap_stg = le32_to_cpu(cfge->bitmap_stg);
+ e->fid = le16_to_cpu(cfge->fid);
+ e->cfg = le16_to_cpu(cfge->cfg);
+ e->eta_port_bitmap = le32_to_cpu(cfge->eta_port_bitmap);
+ e->et_eid = le32_to_cpu(cfge->et_eid);
+}
+
+static const struct ntmp_tbl_ops vft_ops_v0 = {
+ .req_ua_len = sizeof(struct vft_req_ua),
+ .resp_query_len = sizeof(struct vft_resp_query),
+ .pack = ntmp_vft_pack_v0,
+ .unpack = ntmp_vft_unpack_v0,
+};
+
+static const struct ntmp_tbl_ops *ntmp_get_vft_ops(u8 version)
+{
+ switch (version) {
+ case NTMP_TBL_V(0):
+ return &vft_ops_v0;
+ default:
+ return NULL;
+ }
+}
+
static int ntmp_delete_entry_by_id(struct ntmp_user *user, int tbl_id,
u32 entry_id, u32 req_len, u32 resp_len)
{
@@ -1200,43 +1256,51 @@ EXPORT_SYMBOL_GPL(ntmp_fdbt_delete_port_dynamic_entries);
* ntmp_vft_set_entry - add an entry into the VLAN filter table or update
* the configuration element data of the specified VLAN filter entry
* @user: target ntmp_user struct
- * @vid: VLAN ID
- * @cmd: command type, NTMP_CMD_ADD or NTMP_CMD_UPDATE
- * @cfge: configuration element data
+ * @cmd: command type, NTMP_CMD_AQ or NTMP_CMD_UPDATE
+ * @entry: the entry data, entry->vid selects the VLAN filter entry and
+ * the configuration element data provides the values
*
* Return: 0 on success, otherwise a negative error code
*/
-static int ntmp_vft_set_entry(struct ntmp_user *user, u16 vid, int cmd,
- const struct vft_cfge_data *cfge)
+static int ntmp_vft_set_entry(struct ntmp_user *user, int cmd,
+ struct vft_entry_data *entry)
{
+ u8 version = user->tbl_ver[NTMP_VFT_ID];
+ const struct ntmp_tbl_ops *ops;
struct netc_swcbd swcbd;
- struct vft_req_ua *req;
struct netc_cbdr *cbdr;
union netc_cbd cbd;
+ void *buf;
u32 len;
int err;
- if (cmd != NTMP_CMD_ADD && cmd != NTMP_CMD_UPDATE)
- return -EINVAL;
+ ops = ntmp_get_vft_ops(version);
+ if (!ops)
+ return -EOPNOTSUPP;
- swcbd.size = sizeof(*req);
- err = ntmp_alloc_data_mem(user->dev, &swcbd, (void **)&req);
+ swcbd.size = max(ops->req_ua_len, ops->resp_query_len);
+ err = ntmp_alloc_data_mem(user->dev, &swcbd, &buf);
if (err)
return err;
/* Request data */
- ntmp_fill_crd(&req->crd, user->tbl_ver[NTMP_VFT_ID],
- 0, NTMP_GEN_UA_CFGEU);
- req->ak.exact.vid = cpu_to_le16(vid);
- req->cfge = *cfge;
+ ntmp_fill_crd(buf, version, 0, NTMP_GEN_UA_CFGEU);
+ ops->pack(entry, buf, NTMP_AM_EXACT_KEY);
/* Request header */
- len = NTMP_LEN(swcbd.size, NTMP_STATUS_RESP_LEN);
+ len = NTMP_LEN(ops->req_ua_len, ops->resp_query_len);
ntmp_fill_request_hdr(&cbd, swcbd.dma, len, NTMP_VFT_ID,
cmd, NTMP_AM_EXACT_KEY);
ntmp_select_and_lock_cbdr(user, &cbdr);
err = netc_xmit_ntmp_cmd(cbdr, &cbd, &swcbd);
+ if (err)
+ goto unlock_cbdr;
+
+ if (cmd == NTMP_CMD_AQ)
+ ops->unpack(buf, (void *)entry, true);
+
+unlock_cbdr:
ntmp_unlock_cbdr(cbdr);
return err;
@@ -1245,21 +1309,22 @@ static int ntmp_vft_set_entry(struct ntmp_user *user, u16 vid, int cmd,
/**
* ntmp_vft_add_entry - add an entry into the VLAN filter table
* @user: target ntmp_user struct
- * @vid: VLAN ID
- * @cfge: configuration element data
+ * @entry: the entry data, entry->vid is the VLAN ID and the configuration
+ * element data provides the values
*
* Return: 0 on success, otherwise a negative error code
*/
-int ntmp_vft_add_entry(struct ntmp_user *user, u16 vid,
- const struct vft_cfge_data *cfge)
+int ntmp_vft_add_entry(struct ntmp_user *user,
+ struct vft_entry_data *entry)
{
int err;
- err = ntmp_vft_set_entry(user, vid, NTMP_CMD_ADD, cfge);
+ err = ntmp_vft_set_entry(user, NTMP_CMD_AQ, entry);
if (err)
dev_err(user->dev,
"Failed to add %s entry, vid: %u, err: %pe\n",
- ntmp_table_name(NTMP_VFT_ID), vid, ERR_PTR(err));
+ ntmp_table_name(NTMP_VFT_ID), entry->vid,
+ ERR_PTR(err));
return err;
}
@@ -1269,21 +1334,22 @@ EXPORT_SYMBOL_GPL(ntmp_vft_add_entry);
* ntmp_vft_update_entry - update the configuration element data of the
* specified VLAN filter entry
* @user: target ntmp_user struct
- * @vid: VLAN ID
- * @cfge: configuration element data
+ * @entry: the entry data, entry->vid selects the VLAN filter entry and
+ * the configuration element data provides the new values
*
* Return: 0 on success, otherwise a negative error code
*/
-int ntmp_vft_update_entry(struct ntmp_user *user, u16 vid,
- const struct vft_cfge_data *cfge)
+int ntmp_vft_update_entry(struct ntmp_user *user,
+ struct vft_entry_data *entry)
{
int err;
- err = ntmp_vft_set_entry(user, vid, NTMP_CMD_UPDATE, cfge);
+ err = ntmp_vft_set_entry(user, NTMP_CMD_UPDATE, entry);
if (err)
dev_err(user->dev,
"Failed to update %s entry, vid: %u, err: %pe\n",
- ntmp_table_name(NTMP_VFT_ID), vid, ERR_PTR(err));
+ ntmp_table_name(NTMP_VFT_ID), entry->vid,
+ ERR_PTR(err));
return err;
}
diff --git a/drivers/net/ethernet/freescale/enetc/ntmp_private.h b/drivers/net/ethernet/freescale/enetc/ntmp_private.h
index f75129af40606..d75cde81f81cf 100644
--- a/drivers/net/ethernet/freescale/enetc/ntmp_private.h
+++ b/drivers/net/ethernet/freescale/enetc/ntmp_private.h
@@ -291,6 +291,15 @@ struct fdbt_resp_query {
u8 resv[3];
};
+/* VLAN Filter Table Configuration Element Data */
+struct vft_cfge_data {
+ __le32 bitmap_stg;
+ __le16 fid;
+ __le16 cfg;
+ __le32 eta_port_bitmap;
+ __le32 et_eid;
+};
+
/* Access Key Format of VLAN Filter Table */
struct vft_ak_exact {
__le16 vid; /* bit0~11: VLAN ID, other bits are reserved */
@@ -316,6 +325,14 @@ struct vft_req_qd {
union vft_access_key ak;
};
+struct vft_resp_query {
+ __le32 status;
+ __le32 entry_id;
+ __le16 vid; /* KEYE_DATA */
+ __le16 resv;
+ struct vft_cfge_data cfge;
+};
+
/* Egress Treatment Table Request Data Buffer Format of Update and Add
* actions
*/
diff --git a/include/linux/fsl/ntmp.h b/include/linux/fsl/ntmp.h
index 411a3f67c0268..202fd49ac8933 100644
--- a/include/linux/fsl/ntmp.h
+++ b/include/linux/fsl/ntmp.h
@@ -196,14 +196,19 @@ struct fdbt_entry_data {
#define FDBT_ACT_FLAG BIT(7)
};
-struct vft_cfge_data {
- __le32 bitmap_stg;
+struct vft_entry_data {
+ u16 vid;
+ u32 status; /* resume entry ID */
+ u32 entry_id; /* hardware assigns entry ID */
+
+ /* CFGE_DATA */
+ u32 bitmap_stg;
#define VFT_PORT_MEMBERSHIP GENMASK(23, 0)
#define VFT_STG_ID_MASK GENMASK(27, 24)
#define VFT_STG_ID(g) FIELD_PREP(VFT_STG_ID_MASK, (g))
- __le16 fid;
+ u16 fid;
#define VFT_FID GENMASK(11, 0)
- __le16 cfg;
+ u16 cfg;
#define VFT_MLO GENMASK(2, 0)
#define VFT_MFO GENMASK(4, 3)
#define VFT_IPMFE BIT(6)
@@ -212,9 +217,9 @@ struct vft_cfge_data {
#define VFT_SFDA BIT(10)
#define VFT_OSFDA BIT(11)
#define VFT_FDBAFSS BIT(12)
- __le32 eta_port_bitmap;
+ u32 eta_port_bitmap;
#define VFT_ETA_PORT_BITMAP GENMASK(23, 0)
- __le32 et_eid;
+ u32 et_eid;
};
struct ett_cfge_data {
@@ -300,10 +305,10 @@ int ntmp_fdbt_search_port_entry(struct ntmp_user *user, int port,
int ntmp_fdbt_update_activity_element(struct ntmp_user *user);
int ntmp_fdbt_delete_ageing_entries(struct ntmp_user *user, u8 act_cnt);
int ntmp_fdbt_delete_port_dynamic_entries(struct ntmp_user *user, int port);
-int ntmp_vft_add_entry(struct ntmp_user *user, u16 vid,
- const struct vft_cfge_data *cfge);
-int ntmp_vft_update_entry(struct ntmp_user *user, u16 vid,
- const struct vft_cfge_data *cfge);
+int ntmp_vft_add_entry(struct ntmp_user *user,
+ struct vft_entry_data *entry);
+int ntmp_vft_update_entry(struct ntmp_user *user,
+ struct vft_entry_data *entry);
int ntmp_vft_delete_entry(struct ntmp_user *user, u16 vid);
int ntmp_ett_add_entry(struct ntmp_user *user, u32 entry_id,
const struct ett_cfge_data *cfge);
--
2.34.1