diff options
author | pravin shelar <pshelar@ovn.org> | 2016-09-19 22:51:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 04:54:35 +0200 |
commit | 2279994d07ab67ff7a1d09bfbd65588332dfb6d8 (patch) | |
tree | 6d7b081fca05a44e0fd991b35d5c9ed39c74832f /net/openvswitch/flow_netlink.h | |
parent | openvswitch: Fix Frame-size larger than 1024 bytes warning. (diff) | |
download | linux-2279994d07ab67ff7a1d09bfbd65588332dfb6d8.tar.xz linux-2279994d07ab67ff7a1d09bfbd65588332dfb6d8.zip |
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 '')
-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 *); |