Lines Matching refs:fa_cookie
107 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_read() local
113 fa_cookie = nsim_dev->fa_cookie; in nsim_dev_trap_fa_cookie_read()
114 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_read()
118 buf_len = fa_cookie->cookie_len * 2; in nsim_dev_trap_fa_cookie_read()
124 bin2hex(buf, fa_cookie->cookie, fa_cookie->cookie_len); in nsim_dev_trap_fa_cookie_read()
142 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_write() local
157 fa_cookie = kmalloc(sizeof(*fa_cookie) + cookie_len, in nsim_dev_trap_fa_cookie_write()
159 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_write()
164 fa_cookie->cookie_len = cookie_len; in nsim_dev_trap_fa_cookie_write()
165 ret = hex2bin(fa_cookie->cookie, buf, cookie_len); in nsim_dev_trap_fa_cookie_write()
171 kfree(nsim_dev->fa_cookie); in nsim_dev_trap_fa_cookie_write()
172 nsim_dev->fa_cookie = fa_cookie; in nsim_dev_trap_fa_cookie_write()
178 kfree(fa_cookie); in nsim_dev_trap_fa_cookie_write()
549 struct flow_action_cookie *fa_cookie = NULL; in nsim_dev_trap_report() local
573 fa_cookie = has_fa_cookie ? nsim_dev->fa_cookie : NULL; in nsim_dev_trap_report()
575 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report()