summaryrefslogtreecommitdiffstats
path: root/samples/vnf_samples/nsut/prox/tc_prox_baremetal_buffering-1.yaml
blob: 7b28a923bd7ec1bdf415f0575c8f60f6cf2ad272 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) 2016-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.

---
schema: "yardstick:task:0.1"

scenarios:
-
  type: NSPerf
  traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
  topology: prox-tg-topology-1.yaml

  nodes:
    tg__0: trafficgen_1.yardstick
    vnf__0: vnf.yardstick

  options:
    vnf__0:
      prox_path: /root/dppd-PROX-v037/build/prox
      prox_config: "configs/handle_buffering-1.cfg"
      prox_args:
        "-t": ""

    tg__0:
      prox_path: /root/dppd-PROX-v037/build/prox
      prox_config: "configs/gen_buffering-1.cfg"
      prox_args:
        "-e": ""
        "-t": ""

  runner:
    type: Duration
    # we kill after duration, independent of test duration, so set this high
    duration: 300

context:
  type: Node
  name: yardstick
  nfvi_type: baremetal
  file: /etc/yardstick/nodes/prox-baremetal-1.yml
pan>); conf &= 0xE088; conf |= pio[adev->pio_mode - XFER_PIO_0]; pci_write_config_word(pdev, 0x50, conf); } static void tosh_set_dmamode(struct ata_port *ap, struct ata_device *adev) { struct pci_dev *pdev = to_pci_dev(ap->host->dev); u32 conf; pci_read_config_dword(pdev, 0x5C, &conf); conf &= 0x78FFE088; /* Keep the other bits */ if (adev->dma_mode >= XFER_UDMA_0) { int udma = adev->dma_mode - XFER_UDMA_0; conf |= 0x80000000; conf |= (udma + 2) << 28; conf |= (2 - udma) * 0x111; /* spread into three nibbles */ } else { static const u32 mwdma[4] = { 0x0655, 0x0200, 0x0200, 0x0100 }; conf |= mwdma[adev->dma_mode - XFER_MW_DMA_0]; } pci_write_config_dword(pdev, 0x5C, conf); } static struct scsi_host_template tosh_sht = { ATA_BMDMA_SHT(DRV_NAME), }; static struct ata_port_operations tosh_port_ops = { .inherits = &ata_bmdma_port_ops, .cable_detect = ata_cable_unknown, .set_piomode = tosh_set_piomode, .set_dmamode = tosh_set_dmamode }; /** * ata_tosh_init - attach generic IDE * @dev: PCI device found * @id: match entry * * Called each time a matching IDE interface is found. We check if the * interface is one we wish to claim and if so we perform any chip * specific hacks then let the ATA layer do the heavy lifting. */ static int ata_tosh_init_one(struct pci_dev *dev, const struct pci_device_id *id) { static const struct ata_port_info info = { .flags = ATA_FLAG_SLAVE_POSS, .pio_mask = ATA_PIO5, .mwdma_mask = ATA_MWDMA2, .udma_mask = ATA_UDMA2, .port_ops = &tosh_port_ops }; const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info }; /* Just one port for the moment */ return ata_pci_bmdma_init_one(dev, ppi, &tosh_sht, NULL, 0); } static struct pci_device_id ata_tosh[] = { { PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1), }, { PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2), }, { PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_3), }, { PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_5), }, { 0, }, }; static struct pci_driver ata_tosh_pci_driver = { .name = DRV_NAME, .id_table = ata_tosh, .probe = ata_tosh_init_one, .remove = ata_pci_remove_one, #ifdef CONFIG_PM_SLEEP .suspend = ata_pci_device_suspend, .resume = ata_pci_device_resume, #endif }; module_pci_driver(ata_tosh_pci_driver); MODULE_AUTHOR("Alan Cox"); MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); MODULE_LICENSE("GPL"); MODULE_DEVICE_TABLE(pci, ata_tosh); MODULE_VERSION(DRV_VERSION);