mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
openvswitch: Add support for OVS_FLOW_ATTR_PROBE.
This new flag is useful for suppressing error logging while probing for datapath features using flow commands. For backwards compatibility reasons the commands are executed normally, but error logging is suppressed. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
parent
12eb18f711
commit
05da5898a9
7 changed files with 208 additions and 168 deletions
|
@ -712,12 +712,12 @@ int ovs_flow_key_extract(const struct ovs_tunnel_info *tun_info,
|
|||
|
||||
int ovs_flow_key_extract_userspace(const struct nlattr *attr,
|
||||
struct sk_buff *skb,
|
||||
struct sw_flow_key *key)
|
||||
struct sw_flow_key *key, bool log)
|
||||
{
|
||||
int err;
|
||||
|
||||
/* Extract metadata from netlink attributes. */
|
||||
err = ovs_nla_get_flow_metadata(attr, key);
|
||||
err = ovs_nla_get_flow_metadata(attr, key, log);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue