Skip to content

Commit 20ecf1e

Browse files
Jiri Bencdavem330
authored andcommitted
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: 018c1dd ("openvswitch: 802.1AD Flow handling, actions, vlan parsing, netlink attributes") Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Eric Garver <e@erig.me> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 88a2428 commit 20ecf1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/openvswitch/flow.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int parse_vlan(struct sk_buff *skb, struct sw_flow_key *key)
343343
key->eth.cvlan.tci = 0;
344344
key->eth.cvlan.tpid = 0;
345345

346-
if (likely(skb_vlan_tag_present(skb))) {
346+
if (skb_vlan_tag_present(skb)) {
347347
key->eth.vlan.tci = htons(skb->vlan_tci);
348348
key->eth.vlan.tpid = skb->vlan_proto;
349349
} else {

0 commit comments

Comments
 (0)