Re: [PATCH net-next 1/2] openvswitch: remove nonreachable code in vlan parsing

2016-10-05 Thread Jiri Benc
On Tue, 4 Oct 2016 20:06:18 -0400, Eric Garver wrote: > This code is also called for packets passed back down from userspace > (after the flow key miss and upcall). So it does happen that we have a > skb without skb->vlan_tci set. That sucks. The vlan handling should be really consistent, Jiri Pir

Re: [PATCH net-next 1/2] openvswitch: remove nonreachable code in vlan parsing

2016-10-04 Thread Eric Garver
Hi Jiri, On Tue, Oct 04, 2016 at 02:30:01PM +0200, Jiri Benc wrote: > It can never happen that there's a vlan tag in the packet but not in > skb->vlan_tci. This is ensured in __netif_receive_skb_core and honored by > skb_vlan_push and skb_vlan_pop. The code dealing with such case is a dead > code.

[PATCH net-next 1/2] openvswitch: remove nonreachable code in vlan parsing

2016-10-04 Thread Jiri Benc
It can never happen that there's a vlan tag in the packet but not in skb->vlan_tci. This is ensured in __netif_receive_skb_core and honored by skb_vlan_push and skb_vlan_pop. The code dealing with such case is a dead code. Moreover, the likely() statement around skb_vlan_tag_present is bogus. This