]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commit
net/nbl: add dummy VLAN offload configuration
authorDimon Zhao <dimon.zhao@nebula-matrix.com>
Mon, 24 Nov 2025 03:40:26 +0000 (19:40 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 27 Nov 2025 17:52:51 +0000 (18:52 +0100)
commitcde0d5297dd22a7a766d9d56134cc3296e5f02a2
treea25ea37a748e6a919f6b539b0229995ca87b9508
parent82d9cc90be63ebaed13a5175c45d5501684a9fc8
net/nbl: add dummy VLAN offload configuration

Implement the vlan_offload_set device operation to allow
enabling or disabling VLAN offloads through the API.

rte_eth_dev_set_vlan_offload() calls the driver to update the hardware
configuration. Because this driver performs VLAN stripping entirely in
software, only a dummy implementation is needed to avoid returning an
error.

Validation of unsupported or invalid flags is already handled in ethdev.

Fixes: 9d7757dce874 ("net/nbl: simulate VLAN offload")
Signed-off-by: Dimon Zhao <dimon.zhao@nebula-matrix.com>
drivers/net/nbl/nbl_dev/nbl_dev.c
drivers/net/nbl/nbl_dev/nbl_dev.h
drivers/net/nbl/nbl_ethdev.c