[dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config

2016-02-03 Thread Stephen Hemminger
On Tue, 2 Feb 2016 14:57:00 +0800 Wenzhuo Lu wrote: > +/** > + * l2 tunnel configuration. > + */ > +struct rte_eth_l2_tunnel { > + enum rte_eth_l2_tunnel_type l2_tunnel_type; > + uint16_t ether_type; > +}; Building an API with an indirect (structure) parameter with only two elements see

[dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config

2016-02-03 Thread Lu, Wenzhuo
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 3, 2016 11:36 AM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel > confi

[dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config

2016-02-03 Thread Lu, Wenzhuo
Hi Bruce, > -Original Message- > From: Richardson, Bruce > Sent: Tuesday, February 2, 2016 8:03 PM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel > config > > On Tue, Feb 02, 2016 at 02:57:0

[dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config

2016-02-02 Thread Wenzhuo Lu
Add functions to support l2 tunnel configuration. The support includes ether type modification and the tunnel support enabling/disabling. Ether type modification 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. En

[dpdk-dev] [PATCH v2 2/7] lib/librte_ether: support l2 tunnel config

2016-02-02 Thread Bruce Richardson
On Tue, Feb 02, 2016 at 02:57:00PM +0800, Wenzhuo Lu wrote: > Add functions to support l2 tunnel configuration. > The support includes ether type modification and the tunnel support > enabling/disabling. > Ether type modification means modifying the ether type of a specific > type of tunnel. So the