Home
last modified time | relevance | path

Searched refs:sfid (Results 1 – 5 of 5) sorted by relevance

/net/openvswitch/
Dflow.h257 static inline bool ovs_identifier_is_ufid(const struct sw_flow_id *sfid) in ovs_identifier_is_ufid() argument
259 return sfid->ufid_len; in ovs_identifier_is_ufid()
262 static inline bool ovs_identifier_is_key(const struct sw_flow_id *sfid) in ovs_identifier_is_key() argument
264 return !ovs_identifier_is_ufid(sfid); in ovs_identifier_is_key()
Ddatapath.c729 static bool should_fill_key(const struct sw_flow_id *sfid, uint32_t ufid_flags) in should_fill_key() argument
731 return ovs_identifier_is_ufid(sfid) && in should_fill_key()
746 const struct sw_flow_id *sfid, in ovs_flow_cmd_msg_size() argument
754 if (sfid && ovs_identifier_is_ufid(sfid)) in ovs_flow_cmd_msg_size()
755 len += nla_total_size(sfid->ufid_len); in ovs_flow_cmd_msg_size()
760 if (!sfid || should_fill_key(sfid, ufid_flags)) in ovs_flow_cmd_msg_size()
897 const struct sw_flow_id *sfid, in ovs_flow_cmd_alloc_info() argument
908 len = ovs_flow_cmd_msg_size(acts, sfid, ufid_flags); in ovs_flow_cmd_alloc_info()
1198 struct sw_flow_id sfid; in ovs_flow_cmd_set() local
1204 ufid_present = ovs_nla_get_ufid(&sfid, a[OVS_FLOW_ATTR_UFID], log); in ovs_flow_cmd_set()
[all …]
Dflow_table.c896 static u32 ufid_hash(const struct sw_flow_id *sfid) in ufid_hash() argument
898 return jhash(sfid->ufid, sfid->ufid_len, 0); in ufid_hash()
902 const struct sw_flow_id *sfid) in ovs_flow_cmp_ufid() argument
904 if (flow->id.ufid_len != sfid->ufid_len) in ovs_flow_cmp_ufid()
907 return !memcmp(flow->id.ufid, sfid->ufid, sfid->ufid_len); in ovs_flow_cmp_ufid()
Dflow_netlink.h53 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid,
Dflow_netlink.c1875 bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, in ovs_nla_get_ufid() argument
1878 sfid->ufid_len = get_ufid_len(attr, log); in ovs_nla_get_ufid()
1879 if (sfid->ufid_len) in ovs_nla_get_ufid()
1880 memcpy(sfid->ufid, nla_data(attr), sfid->ufid_len); in ovs_nla_get_ufid()
1882 return sfid->ufid_len; in ovs_nla_get_ufid()
1885 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, in ovs_nla_get_identifier() argument
1890 if (ovs_nla_get_ufid(sfid, ufid, log)) in ovs_nla_get_identifier()
1898 sfid->unmasked_key = new_key; in ovs_nla_get_identifier()