openvswitch: vlan: remove wrong likely statement

This code is called whenever flow key is being extracted from the packet.
The packet may be as likely vlan tagged as not.

Fixes: 018c1dda5f ("openvswitch: 802.1AD Flow handling, actions, vlan parsing, netlink attributes")
Signed-off-by: Jiri Benc <>
Acked-by: Pravin B Shelar <>
Acked-by: Eric Garver <>
Signed-off-by: David S. Miller <>
Jiri Benc 7 years ago committed by David S. Miller
parent 88a2428b83
commit 20ecf1e4e3

@ -343,7 +343,7 @@ static int parse_vlan(struct sk_buff *skb, struct sw_flow_key *key)
key-> = 0;
key->eth.cvlan.tpid = 0;
if (likely(skb_vlan_tag_present(skb))) {
if (skb_vlan_tag_present(skb)) {
key-> = htons(skb->vlan_tci);
key->eth.vlan.tpid = skb->vlan_proto;
} else {