Lines Matching defs:ys

373 	struct ynl_sock *ys;
376 ys = ynl_sock_create(&ynl_ethtool_family, &yerr);
377 if (!ys) {
384 rsp = ethtool_channels_get(ys, req);
390 ynl_sock_destroy(ys);
427 struct ynl_sock *ys;
429 ys = ynl_sock_create(&ynl_ethtool_family, &yerr);
430 if (!ys) {
437 get_rsp = ethtool_rings_get(ys, get_req);
440 ynl_sock_destroy(ys);
451 struct ynl_sock *ys;
457 ys = ynl_sock_create(&ynl_ethtool_family, &yerr);
458 if (!ys) {
470 ret = ethtool_rings_set(ys, req);
472 fprintf(stderr, "YNL restoring HDS cfg: %s\n", ys->err.msg);
476 get_rsp = ethtool_rings_get(ys, get_req);
483 ret = ethtool_rings_set(ys, req);
486 ys->err.msg);
492 ynl_sock_destroy(ys);
502 struct ynl_sock *ys;
505 ys = ynl_sock_create(&ynl_ethtool_family, &yerr);
506 if (!ys) {
522 ret = ethtool_rings_set(ys, req);
524 fprintf(stderr, "YNL failed: %s\n", ys->err.msg);
530 get_rsp = ethtool_rings_get(ys, get_req);
538 ynl_sock_destroy(ys);
559 struct ynl_sock *ys;
564 ys = ynl_sock_create(&ynl_ethtool_family, &yerr);
565 if (!ys) {
577 chan = ethtool_channels_get(ys, gchan);
580 fprintf(stderr, "YNL get channels: %s\n", ys->err.msg);
618 ret = ethtool_channels_set(ys, schan);
620 fprintf(stderr, "YNL set channels: %s\n", ys->err.msg);
628 ret = ethtool_channels_set(ys, schan);
631 ys->err.msg);
639 ynl_sock_destroy(ys);
682 unsigned int n_queue_index, struct ynl_sock **ys)
688 *ys = ynl_sock_create(&ynl_netdev_family, &yerr);
689 if (!*ys) {
700 rsp = netdev_bind_rx(*ys, req);
720 fprintf(stderr, "YNL failed: %s\n", (*ys)->err.msg);
722 ynl_sock_destroy(*ys);
727 struct ynl_sock **ys)
733 *ys = ynl_sock_create(&ynl_netdev_family, &yerr);
734 if (!*ys) {
743 rsp = netdev_bind_tx(*ys, req);
763 fprintf(stderr, "YNL failed: %s\n", (*ys)->err.msg);
765 ynl_sock_destroy(*ys);
839 struct ynl_sock *ys;
875 if (bind_rx_queue(ifindex, mem->fd, create_queues(), num_queues, &ys)) {
1046 ynl_sock_destroy(ys);
1063 struct ynl_sock *ys;
1095 if (!bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) {
1111 if (!bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) {
1127 if (bind_rx_queue(ifindex, mem->fd, queues, num_queues, &ys)) {
1142 ynl_sock_destroy(ys);
1249 struct ynl_sock *ys = NULL;
1291 if (bind_tx_queue(ifindex, mem->fd, &ys)) {
1388 ynl_sock_destroy(ys);