summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2019-03-05 15:24:43 +0100
committerJiri Kosina <jkosina@suse.cz>2019-03-05 15:24:43 +0100
commit2c2e5bb97544198a62e4edbf6aca5dd201979564 (patch)
treeffb927ea311d86aeee3a0ef561d6218280c038cb /net/openvswitch/flow.c
parent9b6872a123862cecd19a958f08eb9848b6a4240d (diff)
parent6311d329e12a358a9813d2e929d26fbc5a4c73c2 (diff)
downloadtalos-op-linux-2c2e5bb97544198a62e4edbf6aca5dd201979564.tar.gz
talos-op-linux-2c2e5bb97544198a62e4edbf6aca5dd201979564.zip
Merge branch 'for-5.1/hid-asus' into for-linus
Asus Transbook T100CHI and T90CHI support from NOGUCHI Hiroshi
Diffstat (limited to 'net/openvswitch/flow.c')
-rw-r--r--net/openvswitch/flow.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
index 57e07768c9d1..f54cf17ef7a8 100644
--- a/net/openvswitch/flow.c
+++ b/net/openvswitch/flow.c
@@ -276,10 +276,12 @@ static int parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key)
nexthdr = ipv6_find_hdr(skb, &payload_ofs, -1, &frag_off, &flags);
if (flags & IP6_FH_F_FRAG) {
- if (frag_off)
+ if (frag_off) {
key->ip.frag = OVS_FRAG_TYPE_LATER;
- else
- key->ip.frag = OVS_FRAG_TYPE_FIRST;
+ key->ip.proto = nexthdr;
+ return 0;
+ }
+ key->ip.frag = OVS_FRAG_TYPE_FIRST;
} else {
key->ip.frag = OVS_FRAG_TYPE_NONE;
}
OpenPOWER on IntegriCloud