int tcf_em_tree_validate (struct tcf_proto * tp, struct rtattr * rta, struct tcf_ematch_tree * tree);
This function validates the given configuration TLV rta and builds an ematch tree in tree. The resulting tree must later be copied into the private classifier data using tcf_em_tree_change. You MUST NOT provide the ematch tree variable of the private classifier data directly, the changes would not be locked properly.
Returns a negative error code if the configuration TLV contains errors.
This function validates the given configuration TLV rta and builds an ematch tree in tree. The resulting tree must later be copied into the private classifier data using tcf_em_tree_change. You MUST NOT provide the ematch tree variable of the private classifier data directly, the changes would not be locked properly.
Returns a negative error code if the configuration TLV contains errors.