summaryrefslogtreecommitdiffstats
path: root/ansible/run_yardstick_tests.yml
blob: 1490b8c559c5ce5f861ee06989882ac830a96904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2017 Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: run yardstick tests
  hosts: yardstick
  vars_files:
    - yardstick_config.yml

    - role: install_storperf
      when: "NODE_NAME == 'huawei-pod1'"
#    - run_test
    - role: remove_storperf
      when: "NODE_NAME == 'huawei-pod1'"
class="cp">#include <linux/vm_sockets.h> #include "vmci_transport.h" /* Comment this out to compare with old protocol. */ #define VSOCK_OPTIMIZATION_WAITING_NOTIFY 1 #if defined(VSOCK_OPTIMIZATION_WAITING_NOTIFY) /* Comment this out to remove flow control for "new" protocol */ #define VSOCK_OPTIMIZATION_FLOW_CONTROL 1 #endif #define VMCI_TRANSPORT_MAX_DGRAM_RESENDS 10 struct vmci_transport_recv_notify_data { u64 consume_head; u64 produce_tail; bool notify_on_block; }; struct vmci_transport_send_notify_data { u64 consume_head; u64 produce_tail; }; /* Socket notification callbacks. */ struct vmci_transport_notify_ops { void (*socket_init) (struct sock *sk); void (*socket_destruct) (struct vsock_sock *vsk); int (*poll_in) (struct sock *sk, size_t target, bool *data_ready_now); int (*poll_out) (struct sock *sk, size_t target, bool *space_avail_now); void (*handle_notify_pkt) (struct sock *sk, struct vmci_transport_packet *pkt, bool bottom_half, struct sockaddr_vm *dst, struct sockaddr_vm *src, bool *pkt_processed); int (*recv_init) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_pre_block) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_pre_dequeue) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_post_dequeue) (struct sock *sk, size_t target, ssize_t copied, bool data_read, struct vmci_transport_recv_notify_data *data); int (*send_init) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_pre_block) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_pre_enqueue) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_post_enqueue) (struct sock *sk, ssize_t written, struct vmci_transport_send_notify_data *data); void (*process_request) (struct sock *sk); void (*process_negotiate) (struct sock *sk); }; extern struct vmci_transport_notify_ops vmci_transport_notify_pkt_ops; extern struct vmci_transport_notify_ops vmci_transport_notify_pkt_q_state_ops; #endif /* __VMCI_TRANSPORT_NOTIFY_H__ */