X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fdatapath.c;h=bab29d21b50d3ce3c21b2a100b91fa3257903e52;hb=7cd4615505a3b2b6936cd61b82d30aba95d8f184;hp=5964789de3db45d12b5f3465d7d1b9e57fffac5b;hpb=f3103dfa00d8c7c30af86cd861cca538caef4c15;p=sliver-openvswitch.git diff --git a/datapath/datapath.c b/datapath/datapath.c index 5964789de..bab29d21b 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -834,7 +834,7 @@ static int ovs_packet_cmd_execute(struct sk_buff *skb, struct genl_info *info) /* Normally, setting the skb 'protocol' field would be handled by a * call to eth_type_trans(), but it assumes there's a sending * device, which we may not have. */ - if (ntohs(eth->h_proto) >= 1536) + if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) packet->protocol = eth->h_proto; else packet->protocol = htons(ETH_P_802_2);