Lines Matching refs:fa_cookie
142 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_read() local
148 fa_cookie = nsim_dev->fa_cookie; in nsim_dev_trap_fa_cookie_read()
149 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_read()
153 buf_len = fa_cookie->cookie_len * 2; in nsim_dev_trap_fa_cookie_read()
159 bin2hex(buf, fa_cookie->cookie, fa_cookie->cookie_len); in nsim_dev_trap_fa_cookie_read()
177 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_write() local
195 fa_cookie = kmalloc(sizeof(*fa_cookie) + cookie_len, in nsim_dev_trap_fa_cookie_write()
197 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_write()
202 fa_cookie->cookie_len = cookie_len; in nsim_dev_trap_fa_cookie_write()
203 ret = hex2bin(fa_cookie->cookie, buf, cookie_len); in nsim_dev_trap_fa_cookie_write()
209 kfree(nsim_dev->fa_cookie); in nsim_dev_trap_fa_cookie_write()
210 nsim_dev->fa_cookie = fa_cookie; in nsim_dev_trap_fa_cookie_write()
216 kfree(fa_cookie); in nsim_dev_trap_fa_cookie_write()
796 struct flow_action_cookie *fa_cookie = NULL; in nsim_dev_trap_report() local
820 fa_cookie = has_fa_cookie ? nsim_dev->fa_cookie : NULL; in nsim_dev_trap_report()
822 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report()
1685 kfree(nsim_dev->fa_cookie); in nsim_drv_remove()