[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-10 Thread Lu, Wenzhuo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 5:28 PM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel > operations

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Thomas Monjalon
2016-03-09 01:15, Lu, Wenzhuo: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-03-08 14:53, Wenzhuo Lu: > > > +/** > > > + * l2 tunnel type. > > > + */ > > > +enum rte_eth_l2_tunnel_type { > > > + RTE_L2_TUNNEL_TYPE_NONE = 0, > > > + RTE_L2_TUNNEL_TYPE_E_TAG, > > > + RTE_L2_T

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 8:15 AM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel > operations

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Thomas Monjalon
2016-03-08 14:53, Wenzhuo Lu: > +/** > + * l2 tunnel type. > + */ > +enum rte_eth_l2_tunnel_type { > + RTE_L2_TUNNEL_TYPE_NONE = 0, > + RTE_L2_TUNNEL_TYPE_E_TAG, > + RTE_L2_TUNNEL_TYPE_MAX, > +}; We already have rte_eth_tunnel_type. Why this struct is in rte_eth_ctrl.h and not used wit

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-08 Thread Wenzhuo Lu
Add functions to support l2 tunnel configuration and operations. 1, L2 tunnel ether type modification. It means modifying the ether type of a specific type of tunnel. So the packet with this ether type will be parsed as this type of tunnel. 2, Enabling/disabling l2 tunnel support. It me