From f7148d3d3a0a9dedf24cb4d7a5a72b63c17e6add Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Mon, 11 May 2020 00:20:51 +0200 Subject: Added initial VLAN support with vdev devices For kernel supported devices, add for vlan tag support This can be configured through port parameter: vlan tag= If this parameter is set, a vlan tagged interface is created on top of the tap device This is only supported for vdev tap devices When sending (untagged) packet to the tap device (through socket) the tap should react in sending tagged packet Note that receiving in L3 mode (w/o tap support) a tagged packet is not yet supported. Change-Id: I363fa2f8d2341ac41ef23620222ece1d944bf336 Signed-off-by: Xavier Simonart --- VNFs/DPPD-PROX/prox_port_cfg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'VNFs/DPPD-PROX/prox_port_cfg.h') diff --git a/VNFs/DPPD-PROX/prox_port_cfg.h b/VNFs/DPPD-PROX/prox_port_cfg.h index d6090a35..ad3d9380 100644 --- a/VNFs/DPPD-PROX/prox_port_cfg.h +++ b/VNFs/DPPD-PROX/prox_port_cfg.h @@ -83,6 +83,7 @@ struct prox_port_cfg { int dpdk_mapping; uint32_t ip; int fd; + uint32_t vlan_tag; }; extern rte_atomic32_t lsc; -- cgit 1.2.3-korg