diff options
| author | David S. Miller <davem@davemloft.net> | 2016-05-15 13:32:12 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-05-15 13:32:48 -0400 |
| commit | 909b27f706433a0b3dff79aa259de63aafe40a42 (patch) | |
| tree | c13cda633379cdbef701e730027b6a19ba6b267e /net/openvswitch | |
| parent | 8fbb89c6fbfd1cda9ae413cd1e042837a8edbdeb (diff) | |
| parent | 272911b889f47aa5bc3e004804fc2382f0ac6ce6 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The nf_conntrack_core.c fix in 'net' is not relevant in 'net-next'
because we no longer have a per-netns conntrack hash.
The ip_gre.c conflict as well as the iwlwifi ones were cases of
overlapping changes.
Conflicts:
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
net/ipv4/ip_gre.c
net/netfilter/nf_conntrack_core.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
| -rw-r--r-- | net/openvswitch/conntrack.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index 9f0bc49fa969..3d5feede962d 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c | |||
| @@ -768,6 +768,19 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, | |||
| 768 | return -EINVAL; | 768 | return -EINVAL; |
| 769 | } | 769 | } |
| 770 | 770 | ||
| 771 | /* Userspace may decide to perform a ct lookup without a helper | ||
| 772 | * specified followed by a (recirculate and) commit with one. | ||
| 773 | * Therefore, for unconfirmed connections which we will commit, | ||
| 774 | * we need to attach the helper here. | ||
| 775 | */ | ||
| 776 | if (!nf_ct_is_confirmed(ct) && info->commit && | ||
| 777 | info->helper && !nfct_help(ct)) { | ||
| 778 | int err = __nf_ct_try_assign_helper(ct, info->ct, | ||
| 779 | GFP_ATOMIC); | ||
| 780 | if (err) | ||
| 781 | return err; | ||
| 782 | } | ||
| 783 | |||
| 771 | /* Call the helper only if: | 784 | /* Call the helper only if: |
| 772 | * - nf_conntrack_in() was executed above ("!cached") for a | 785 | * - nf_conntrack_in() was executed above ("!cached") for a |
| 773 | * confirmed connection, or | 786 | * confirmed connection, or |
