diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2020-07-10 12:59:40 +0200 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2020-09-21 10:35:03 +0200 |
commit | 9a1e1e9336b39178362c6ccadd4a9716f865047f (patch) | |
tree | ddcf3543c1145183e37563597b7848dc675959e8 /VNFs/DPPD-PROX/main.c | |
parent | dcbc010d7e50d5d42ce5ecba9b6a2234998e7c88 (diff) |
Added support for multiple vlans in ipv4 vdev mode
When the following conditions are met:
- ipv4
- vdev enabled
Then multiple vlans are supported.
Multiple vlans can be configured using the vlan_tag option within the port section of the config file.
Multiple (different) local_ipv4/prefix must then also be configured within the same section.
Note that for ipv6 multiple vlans are not supported (yet)
Also, when vdev is not enabled, multiple vlans are also not (yet) supported.
Change-Id: I38b6cd98ff2a0f484d1bf0910b15413ba21ae6d6
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/main.c')
-rw-r--r-- | VNFs/DPPD-PROX/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/VNFs/DPPD-PROX/main.c b/VNFs/DPPD-PROX/main.c index b9fe80a2..aeee288b 100644 --- a/VNFs/DPPD-PROX/main.c +++ b/VNFs/DPPD-PROX/main.c @@ -325,7 +325,7 @@ static void configure_if_rx_queues(struct task_args *targ, uint8_t socket) if (port_used_counter[if_port] > 1) { multiple_port_reference = true; port = &prox_port_cfg[if_port]; - PROX_PANIC((port->all_rx_queues), "Multiple queues defined in rx port, but all_rx_queues also set for port %s\n", port->name); + PROX_PANIC((port->all_rx_queues), "Multiple queues defined in rx port, but all_rx_queues also set for port %s\n", port->names[0]); } } // If only referenced once, it is possible that we want to use all queues @@ -338,7 +338,7 @@ static void configure_if_rx_queues(struct task_args *targ, uint8_t socket) if (port->all_rx_queues) { port_used_counter[if_port] = port->max_rxq; total_number_of_queues += port->max_rxq; - plog_info("\tall_rx_queues for Port %s: %u rx_queues will be applied\n", port->name, port_used_counter[if_port]); + plog_info("\tall_rx_queues for Port %s: %u rx_queues will be applied\n", port->names[0], port_used_counter[if_port]); } } } @@ -353,7 +353,7 @@ static void configure_if_rx_queues(struct task_args *targ, uint8_t socket) index ++; } port = &prox_port_cfg[i]; - plog_info("\t\tConfiguring task to use port %s with %u rx_queues\n", port->name, port_used_counter[i]); + plog_info("\t\tConfiguring task to use port %s with %u rx_queues\n", port->names[0], port_used_counter[i]); } } targ->nb_rxports = index; |