Lines Matching refs:ys
215 struct ynl_sock *ys; in rxq_num() local
218 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in rxq_num()
219 if (!ys) { in rxq_num()
226 rsp = ethtool_channels_get(ys, req); in rxq_num()
232 ynl_sock_destroy(ys); in rxq_num()
282 struct ynl_sock *ys; in configure_headersplit() local
285 ys = ynl_sock_create(&ynl_ethtool_family, &yerr); in configure_headersplit()
286 if (!ys) { in configure_headersplit()
295 ret = ethtool_rings_set(ys, req); in configure_headersplit()
297 fprintf(stderr, "YNL failed: %s\n", ys->err.msg); in configure_headersplit()
303 get_rsp = ethtool_rings_get(ys, get_req); in configure_headersplit()
311 ynl_sock_destroy(ys); in configure_headersplit()
353 unsigned int n_queue_index, struct ynl_sock **ys) in bind_rx_queue() argument
359 *ys = ynl_sock_create(&ynl_netdev_family, &yerr); in bind_rx_queue()
360 if (!*ys) { in bind_rx_queue()
370 rsp = netdev_bind_rx(*ys, req); in bind_rx_queue()
390 fprintf(stderr, "YNL failed: %s\n", (*ys)->err.msg); in bind_rx_queue()
392 ynl_sock_destroy(*ys); in bind_rx_queue()
462 struct ynl_sock *ys; in do_server() local
489 if (bind_rx_queue(ifindex, mem->fd, create_queues(), num_queues, &ys)) in do_server()
631 ynl_sock_destroy(ys); in do_server()
639 struct ynl_sock *ys; in run_devmem_tests() local
652 num_queues, &ys)) in run_devmem_tests()
658 if (!bind_rx_queue(ifindex, mem->fd, create_queues(), num_queues, &ys)) in run_devmem_tests()
664 if (bind_rx_queue(ifindex, mem->fd, create_queues(), num_queues, &ys)) in run_devmem_tests()
672 ynl_sock_destroy(ys); in run_devmem_tests()