]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: add "Update" and "Delete" operations to VLAN filter table
authorWei Fang <wei.fang@nxp.com>
Thu, 11 Jun 2026 02:14:51 +0000 (10:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 21:32:05 +0000 (14:32 -0700)
commitc52b6702a9481dd7f05fb5f484cb6639f5ce57ee
treecb89288a4ee615d95c29717c41a57577e58daf4e
parentca394837dfddba669e0021b8be7f1e68affb206b
net: enetc: add "Update" and "Delete" operations to VLAN filter table

Add two interfaces to manage entries in the VLAN filter table:

ntmp_vft_update_entry(): Update the configuration element data of the
specified VLAN filter entry based on the given VLAN ID. It uses the
exact key access method to locate the entry.

ntmp_vft_delete_entry(): Delete the VLAN filter entry corresponding to
the specified VLAN ID. It also uses the exact key access method to
identify the target entry.

In addition, introduce struct vft_req_qd to describe the request data
buffer format for Query and Delete actions of the VLAN filter table,
which contains a common request data header and a VLAN access key.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20260611021458.2629145-3-wei.fang@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/ntmp.c
drivers/net/ethernet/freescale/enetc/ntmp_private.h
include/linux/fsl/ntmp.h