Lines Matching refs:rxsc
305 static bool parse_rxsci(int *argcp, char ***argvp, struct rxsc_desc *rxsc, in parse_rxsci() argument
316 rxsc->sci = sci.sci; in parse_rxsci()
321 static int parse_rxsci_args(int *argcp, char ***argvp, struct rxsc_desc *rxsc) in parse_rxsci_args() argument
331 rxsc->active = true; in parse_rxsci_args()
336 rxsc->active = false; in parse_rxsci_args()
375 struct rxsc_desc *rxsc, struct sa_desc *sa) in do_modify_nl() argument
382 if (rxsc) { in do_modify_nl()
388 MACSEC_RXSC_ATTR_SCI, rxsc->sci); in do_modify_nl()
389 if (c != CMD_DEL && rxsc->active != 0xff) in do_modify_nl()
391 MACSEC_RXSC_ATTR_ACTIVE, rxsc->active); in do_modify_nl()
479 struct rxsc_desc rxsc = {0}; in do_modify_rxsci() local
484 rxsc.ifindex = ifindex; in do_modify_rxsci()
485 rxsc.active = 0xff; in do_modify_rxsci()
489 sa_set = parse_rxsci(&argc, &argv, &rxsc, &rxsa); in do_modify_rxsci()
497 if (!sa_set && parse_rxsci_args(&argc, &argv, &rxsc)) in do_modify_rxsci()
502 return do_modify_nl(c, cmd, rxsc.ifindex, &rxsc, &rxsa); in do_modify_rxsci()