Lines Matching refs:sa_idx

266 	u16 sa_idx;  in ixgbevf_ipsec_add_sa()  local
297 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa()
333 memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); in ixgbevf_ipsec_add_sa()
335 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_add_sa()
340 hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, in ixgbevf_ipsec_add_sa()
351 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa()
373 memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); in ixgbevf_ipsec_add_sa()
375 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_add_sa()
392 u16 sa_idx; in ixgbevf_ipsec_del_sa() local
398 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_del_sa()
400 if (!ipsec->rx_tbl[sa_idx].used) { in ixgbevf_ipsec_del_sa()
402 sa_idx, xs->xso.offload_handle); in ixgbevf_ipsec_del_sa()
406 ixgbevf_ipsec_del_pf_sa(adapter, ipsec->rx_tbl[sa_idx].pfsa); in ixgbevf_ipsec_del_sa()
407 hash_del_rcu(&ipsec->rx_tbl[sa_idx].hlist); in ixgbevf_ipsec_del_sa()
408 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa()
411 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_del_sa()
413 if (!ipsec->tx_tbl[sa_idx].used) { in ixgbevf_ipsec_del_sa()
415 sa_idx, xs->xso.offload_handle); in ixgbevf_ipsec_del_sa()
419 ixgbevf_ipsec_del_pf_sa(adapter, ipsec->tx_tbl[sa_idx].pfsa); in ixgbevf_ipsec_del_sa()
420 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbevf_ipsec_del_sa()
466 u16 sa_idx; in ixgbevf_ipsec_tx() local
482 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_tx()
483 if (unlikely(sa_idx >= IXGBE_IPSEC_MAX_SA_COUNT)) { in ixgbevf_ipsec_tx()
485 __func__, sa_idx, xs->xso.offload_handle); in ixgbevf_ipsec_tx()
489 tsa = &ipsec->tx_tbl[sa_idx]; in ixgbevf_ipsec_tx()
492 __func__, sa_idx); in ixgbevf_ipsec_tx()