Home
last modified time | relevance | path

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

/openbmc/linux/net/sched/
H A Dem_ipt.c42 static int check_match(struct net *net, struct em_ipt_match *im, int mdata_len) in check_match() argument
57 return xt_check_match(&mtpar, mdata_len, 0, 0); in check_match()
132 int mdata_len, ret; in em_ipt_change() local
159 mdata_len = XT_ALIGN(nla_len(tb[TCA_EM_IPT_MATCH_DATA])); in em_ipt_change()
160 im = kzalloc(sizeof(*im) + mdata_len, GFP_KERNEL); in em_ipt_change()
169 nla_memcpy(im->match_data, tb[TCA_EM_IPT_MATCH_DATA], mdata_len); in em_ipt_change()
171 ret = check_match(net, im, mdata_len); in em_ipt_change()
175 em->datalen = sizeof(*im) + mdata_len; in em_ipt_change()