Lines Matching full:sci
6 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() argument
11 if (ns->macsec.nsim_secy[i].sci == sci) in nsim_macsec_find_secy()
18 static int nsim_macsec_find_rxsc(struct nsim_secy *ns_secy, sci_t sci) in nsim_macsec_find_rxsc() argument
23 if (ns_secy->nsim_rxsc[i].sci == sci) in nsim_macsec_find_rxsc()
49 netdev_dbg(ctx->netdev, "%s: adding new secy with sci %08llx at index %d\n", in nsim_macsec_add_secy()
50 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_add_secy()
53 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci; in nsim_macsec_add_secy()
64 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_secy()
66 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_upd_secy()
67 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_secy()
71 netdev_dbg(ctx->netdev, "%s: updating secy with sci %08llx at index %d\n", in nsim_macsec_upd_secy()
72 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_upd_secy()
82 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_secy()
84 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_del_secy()
85 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_secy()
89 netdev_dbg(ctx->netdev, "%s: removing SecY with SCI %08llx at index %d\n", in nsim_macsec_del_secy()
90 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_del_secy()
105 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_rxsc()
107 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_add_rxsc()
108 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_rxsc()
125 netdev_dbg(ctx->netdev, "%s: adding new rxsc with sci %08llx at index %d\n", in nsim_macsec_add_rxsc()
126 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_add_rxsc()
128 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci; in nsim_macsec_add_rxsc()
140 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_rxsc()
142 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_upd_rxsc()
143 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_rxsc()
148 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_upd_rxsc()
150 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n", in nsim_macsec_upd_rxsc()
151 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_upd_rxsc()
155 netdev_dbg(ctx->netdev, "%s: updating RXSC with sci %08llx at index %d\n", in nsim_macsec_upd_rxsc()
156 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_upd_rxsc()
167 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_rxsc()
169 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_del_rxsc()
170 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_rxsc()
175 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_del_rxsc()
177 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n", in nsim_macsec_del_rxsc()
178 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_del_rxsc()
182 netdev_dbg(ctx->netdev, "%s: removing RXSC with sci %08llx at index %d\n", in nsim_macsec_del_rxsc()
183 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_del_rxsc()
198 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_rxsa()
200 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_add_rxsa()
201 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_rxsa()
206 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_add_rxsa()
208 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n", in nsim_macsec_add_rxsa()
209 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_add_rxsa()
213 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n", in nsim_macsec_add_rxsa()
214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa()
225 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_rxsa()
227 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_upd_rxsa()
228 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_rxsa()
233 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_upd_rxsa()
235 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n", in nsim_macsec_upd_rxsa()
236 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_upd_rxsa()
240 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n", in nsim_macsec_upd_rxsa()
241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa()
252 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_rxsa()
254 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_del_rxsa()
255 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_rxsa()
260 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_del_rxsa()
262 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n", in nsim_macsec_del_rxsa()
263 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_del_rxsa()
267 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n", in nsim_macsec_del_rxsa()
268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa()
278 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_txsa()
280 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_add_txsa()
281 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_txsa()
285 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n", in nsim_macsec_add_txsa()
286 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_add_txsa()
296 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_txsa()
298 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_upd_txsa()
299 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_txsa()
303 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n", in nsim_macsec_upd_txsa()
304 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_upd_txsa()
314 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_txsa()
316 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_del_txsa()
317 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_txsa()
321 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n", in nsim_macsec_del_txsa()
322 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_del_txsa()