[dpdk-dev] VLAN header insertion and removal

2014-12-23 Thread Padam J. Singh
Hello Alex, Thanks for the help - this worked! BR, Padam > On 21-Dec-2014, at 2:42 pm, Alex Markuze wrote: > > On ingress when configuring the device > 1.modify the > rte_eth_conf.rxmode.hw_vlan_strip = 1, > > On egress you need to modify the rte_va

[dpdk-dev] VLAN header insertion and removal

2014-12-21 Thread Alex Markuze
On ingress when configuring the device 1.modify the rte_eth_conf.rxmode.hw_vlan_strip = 1, On egress you need to modify the rte_van_macip struct in the sent mbuf*. (rte_mbuf.h) 1. add the PKT_TX_VLAN_PKT to the ol_fla

[dpdk-dev] VLAN header insertion and removal

2014-12-21 Thread Padam Jeet Singh
Hello, I have done a simple mbuf adjust and prepend to achieve the removal and insertion of the vlan header and it works fine. The use case is something similar to the l3fwd example where one port has traffic coming in on multiple vlans and the other port has no vlans. The packet processing pa