Lines Matching refs:ip_tbl
341 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; in ixgbe_ipsec_restore()
647 if (ipsec->ip_tbl[i].used) { in ixgbe_ipsec_add_sa()
648 if (!memcmp(ipsec->ip_tbl[i].ipaddr, in ixgbe_ipsec_add_sa()
665 ipsec->ip_tbl[match].ref_cnt++; in ixgbe_ipsec_add_sa()
671 memcpy(ipsec->ip_tbl[first].ipaddr, in ixgbe_ipsec_add_sa()
673 ipsec->ip_tbl[first].ref_cnt = 1; in ixgbe_ipsec_add_sa()
674 ipsec->ip_tbl[first].used = true; in ixgbe_ipsec_add_sa()
786 if (ipsec->ip_tbl[ipi].ref_cnt > 0) { in ixgbe_ipsec_del_sa()
787 ipsec->ip_tbl[ipi].ref_cnt--; in ixgbe_ipsec_del_sa()
789 if (!ipsec->ip_tbl[ipi].ref_cnt) { in ixgbe_ipsec_del_sa()
790 memset(&ipsec->ip_tbl[ipi], 0, in ixgbe_ipsec_del_sa()
1268 ipsec->ip_tbl = kzalloc(size, GFP_KERNEL); in ixgbe_init_ipsec_offload()
1269 if (!ipsec->ip_tbl) in ixgbe_init_ipsec_offload()
1284 kfree(ipsec->ip_tbl); in ixgbe_init_ipsec_offload()
1302 kfree(ipsec->ip_tbl); in ixgbe_stop_ipsec_offload()