diff options
author | pravin shelar <pshelar@ovn.org> | 2016-09-19 13:51:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-20 22:54:35 -0400 |
commit | 2279994d07ab67ff7a1d09bfbd65588332dfb6d8 (patch) | |
tree | 6d7b081fca05a44e0fd991b35d5c9ed39c74832f /net/openvswitch/flow_netlink.h | |
parent | 190aa3e77880a05332ea1ccb382a51285d57adb5 (diff) | |
download | linux-2279994d07ab67ff7a1d09bfbd65588332dfb6d8.tar.bz2 |
openvswitch: avoid resetting flow key while installing new flow.
since commit commit db74a3335e0f6 ("openvswitch: use percpu
flow stats") flow alloc resets flow-key. So there is no need
to reset the flow-key again if OVS is using newly allocated
flow-key.
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/flow_netlink.h')
-rw-r--r-- | net/openvswitch/flow_netlink.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/flow_netlink.h b/net/openvswitch/flow_netlink.h index 47dd142eca1c..45f9769e5aac 100644 --- a/net/openvswitch/flow_netlink.h +++ b/net/openvswitch/flow_netlink.h @@ -41,7 +41,8 @@ size_t ovs_tun_key_attr_size(void); size_t ovs_key_attr_size(void); void ovs_match_init(struct sw_flow_match *match, - struct sw_flow_key *key, struct sw_flow_mask *mask); + struct sw_flow_key *key, bool reset_key, + struct sw_flow_mask *mask); int ovs_nla_put_key(const struct sw_flow_key *, const struct sw_flow_key *, int attr, bool is_mask, struct sk_buff *); |