Lines Matching full:ys

391 	struct ynl_sock *ys;  in rxq_num()  local
394 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in rxq_num()
395 if (!ys) { in rxq_num()
402 rsp = ethtool_channels_get(ys, req); in rxq_num()
408 ynl_sock_destroy(ys); in rxq_num()
445 struct ynl_sock *ys; in get_ring_config() local
447 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in get_ring_config()
448 if (!ys) { in get_ring_config()
455 get_rsp = ethtool_rings_get(ys, get_req); in get_ring_config()
458 ynl_sock_destroy(ys); in get_ring_config()
469 struct ynl_sock *ys; in restore_ring_config() local
475 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in restore_ring_config()
476 if (!ys) { in restore_ring_config()
488 ret = ethtool_rings_set(ys, req); in restore_ring_config()
490 fprintf(stderr, "YNL restoring HDS cfg: %s\n", ys->err.msg); in restore_ring_config()
494 get_rsp = ethtool_rings_get(ys, get_req); in restore_ring_config()
501 ret = ethtool_rings_set(ys, req); in restore_ring_config()
504 ys->err.msg); in restore_ring_config()
510 ynl_sock_destroy(ys); in restore_ring_config()
520 struct ynl_sock *ys; in configure_headersplit() local
523 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in configure_headersplit()
524 if (!ys) { in configure_headersplit()
540 ret = ethtool_rings_set(ys, req); in configure_headersplit()
542 fprintf(stderr, "YNL failed: %s\n", ys->err.msg); in configure_headersplit()
548 get_rsp = ethtool_rings_get(ys, get_req); in configure_headersplit()
556 ynl_sock_destroy(ys); in configure_headersplit()
577 struct ynl_sock *ys; in check_changing_channels() local
582 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in check_changing_channels()
583 if (!ys) { in check_changing_channels()
595 chan = ethtool_channels_get(ys, gchan); in check_changing_channels()
598 fprintf(stderr, "YNL get channels: %s\n", ys->err.msg); in check_changing_channels()
636 ret = ethtool_channels_set(ys, schan); in check_changing_channels()
638 fprintf(stderr, "YNL set channels: %s\n", ys->err.msg); in check_changing_channels()
646 ret = ethtool_channels_set(ys, schan); in check_changing_channels()
649 ys->err.msg); in check_changing_channels()
657 ynl_sock_destroy(ys); in check_changing_channels()
700 unsigned int n_queue_index, struct ynl_sock **ys) in bind_rx_queue() argument
706 *ys = ynl_sock_create(&ynl_netdev_family, &yerr); in bind_rx_queue()
707 if (!*ys) { in bind_rx_queue()
720 rsp = netdev_bind_rx(*ys, req); in bind_rx_queue()
740 fprintf(stderr, "YNL failed: %s\n", (*ys)->err.msg); in bind_rx_queue()
742 ynl_sock_destroy(*ys); in bind_rx_queue()
747 struct ynl_sock **ys) in bind_tx_queue() argument
753 *ys = ynl_sock_create(&ynl_netdev_family, &yerr); in bind_tx_queue()
754 if (!*ys) { in bind_tx_queue()
763 rsp = netdev_bind_tx(*ys, req); in bind_tx_queue()
783 fprintf(stderr, "YNL failed: %s\n", (*ys)->err.msg); in bind_tx_queue()
785 ynl_sock_destroy(*ys); in bind_tx_queue()
859 struct ynl_sock *ys; in do_server() local
897 if (bind_rx_queue(ifindex, mem->fd, create_queues(), num_queues, &ys)) { in do_server()
1073 ynl_sock_destroy(ys); in do_server()
1094 struct ynl_sock *ys; in run_devmem_tests() local
1126 if (!bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) { in run_devmem_tests()
1142 if (!bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) { in run_devmem_tests()
1158 if (bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) { in run_devmem_tests()
1173 ynl_sock_destroy(ys); in run_devmem_tests()
1280 struct ynl_sock *ys = NULL; in do_client() local
1322 if (bind_tx_queue(ifindex, mem->fd, &ys)) { in do_client()
1419 ynl_sock_destroy(ys); in do_client()