diff options
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index d61cd9971808..8759265a3e46 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
@@ -681,7 +681,7 @@ static int ovs_packet_cmd_execute(struct sk_buff *skb, struct genl_info *info) | |||
681 | /* Normally, setting the skb 'protocol' field would be handled by a | 681 | /* Normally, setting the skb 'protocol' field would be handled by a |
682 | * call to eth_type_trans(), but it assumes there's a sending | 682 | * call to eth_type_trans(), but it assumes there's a sending |
683 | * device, which we may not have. */ | 683 | * device, which we may not have. */ |
684 | if (ntohs(eth->h_proto) >= 1536) | 684 | if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) |
685 | packet->protocol = eth->h_proto; | 685 | packet->protocol = eth->h_proto; |
686 | else | 686 | else |
687 | packet->protocol = htons(ETH_P_802_2); | 687 | packet->protocol = htons(ETH_P_802_2); |