summaryrefslogtreecommitdiffstats
path: root/samples/vnf_samples
AgeCommit message (Expand)AuthorFilesLines
2018-03-16Merge "NSB PROX L3FWD Dropping packets"Abhijit Sinha10-97/+207
2018-03-15NSB PROX L3FWD Dropping packetsDanielMartinBuckley10-97/+207
2018-03-09Do NOT hardcode interface speed for PROX testsDanielMartinBuckley2-0/+4
2018-03-05PROX: [WIP] Added scale up TCs.Mytnyk, Volodymyr10-0/+810
2018-03-01vFW scale-up template.Mytnyk, Volodymyr8-0/+502
2018-02-28Merge "Addition of storage of extra counters for Grafana"Abhijit Sinha3-11/+21
2018-02-28Addition of storage of extra counters for GrafanaDanielMartinBuckley3-11/+21
2018-02-19Make segmentation_id configurable for tc_heat_rfc2544_ipv4_1rule_1flow_64B_trexMytnyk, Volodymyr1-0/+7
2018-02-15Merge "Update heat RFC2544 based TC to support SRIOV VF ports."Emma Foley1-0/+11
2018-02-14BugFix: Fix to pod context filenameXavier Simonart1-1/+1
2018-02-14Update heat RFC2544 based TC to support SRIOV VF ports.Mytnyk, Volodymyr1-0/+11
2018-02-08Prox vnf descriptor cleanupAbhijit Sinha9-195/+6
2018-02-01Merge "Adding new vFirewall Test cases based on Concurrency, Connections per ...Ross Brattain59-0/+2980
2018-01-30Add sample OpenStack/SRIOV RFC2544 based TCMytnyk, Volodymyr1-0/+88
2018-01-23Cleanup of redundant files from Prox directoryAbhijit Sinha15-631/+0
2018-01-02Merge "Adding vFW RFC2544 and ixload test cases with various packet sizes"Ross Brattain11-0/+714
2017-12-16samples: Add generic L3 forwarder testsDino Madarang64-0/+7134
2017-12-12Merge "Adding vFirewall HTTP Traffic Profiles for tests including Concurrency...Ross Brattain40-0/+73520
2017-12-12Adding vFirewall HTTP Traffic Profiles.Phani Kiran Thaticharla6-1/+121
2017-12-11Adding vFW RFC2544 and ixload test cases with various packet sizesPhani Kiran Thaticharla11-0/+714
2017-12-04Adding vFirewall HTTP Traffic Profiles for tests including Concurrency, CPS, ...Phani Kiran Thaticharla40-0/+73520
2017-12-04Adding new vFirewall Test cases based on Concurrency, Connections per second,...Phani Kiran Thaticharla59-0/+2980
2017-11-17Merge "Add vfw ixload testcase for heat"Ross Brattain7-11/+2953
2017-11-17Merge "NSB: update vfw tc_heat_external tests"Ross Brattain2-11/+107
2017-11-17Merge "NSB Prox BM test case fixes for scale up"Ross Brattain28-337/+99
2017-11-16NSB "Prox" : Cleanup duplicated traffic profileAbhijit Sinha1-1/+1
2017-11-14NSB Prox BM test case fixes for scale upAbhijit Sinha28-337/+99
2017-11-10NSB: fix vpe_config licenseRoss Brattain1-27/+10
2017-11-09Merge "NSB Prox LW_AFTR Test"Ross Brattain6-0/+66112
2017-11-07Fixed incorrect Copyright NoticeDanielMartinBuckley1-27/+10
2017-11-07NSB Prox LW_AFTR TestDanielMartinBuckley6-0/+66112
2017-10-30ixia: add 1024 and 1280 byte packet size to Ixia ipv4 traffic profileRoss Brattain1-0/+8
2017-10-24Add vfw ixload testcase for heatJennifer Li7-11/+2953
2017-10-23NSB: update vfw tc_heat_external testsRoss Brattain2-11/+107
2017-10-23BugFix: Fix to pod filename ext and prox pathAbhijit Sinha38-99/+99
2017-10-19Merge "Add missing RFC2544 Ethernet frame sizes"Rex Lee1-0/+8
2017-10-19Merge "tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml updated"Ross Brattain1-16/+26
2017-10-18NSB: update vfw scale-out testcasesRoss Brattain7-33/+548
2017-10-19Add missing RFC2544 Ethernet frame sizesDino Madarang1-0/+8
2017-10-19Merge "add VNF scale-up template"Ross Brattain1-0/+98
2017-10-18tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex_correlated_scale_2: fix indentRoss Brattain1-8/+8
2017-10-18add VNF scale-up templateRoss Brattain1-0/+98
2017-10-17tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml updatedRoss Brattain1-16/+26
2017-10-17scale-out testcase templateRoss Brattain28-0/+5441
2017-10-17Merge "BugFix: Fix to Load Balancer - Previously Dropped packets was acceptable"Ross Brattain1-1/+1
2017-10-17Enable static cgnapt functionality.Deepak S1-2/+2
2017-10-17BugFix: Fix to Load Balancer - Previously Dropped packets was acceptableDanielMartinBuckley1-1/+1
2017-10-17Merge "Update the traffic profile to support sample multi-port"Ross Brattain5-0/+62
2017-10-17Merge "fix invalid chracters in ansible scripts"Ross Brattain8-8/+85
2017-10-17Merge "Adding sample multi-port ansible script"Ross Brattain18-0/+966
->fw_ver.patch_num); return 0; } /** * rsi_version_open() - This funtion calls single open function of seq_file to * open file and read contents from it. * @inode: Pointer to the inode structure. * @file: Pointer to the file structure. * * Return: Pointer to the opened file status: 0 on success, ENOMEM on failure. */ static int rsi_version_open(struct inode *inode, struct file *file) { return single_open(file, rsi_version_read, inode->i_private); } /** * rsi_stats_read() - This function return the status of the driver. * @seq: Pointer to the sequence file structure. * @data: Pointer to the data. * * Return: 0 on success, -1 on failure. */ static int rsi_stats_read(struct seq_file *seq, void *data) { struct rsi_common *common = seq->private; unsigned char fsm_state[][32] = { "FSM_CARD_NOT_READY", "FSM_BOOT_PARAMS_SENT", "FSM_EEPROM_READ_MAC_ADDR", "FSM_RESET_MAC_SENT", "FSM_RADIO_CAPS_SENT", "FSM_BB_RF_PROG_SENT", "FSM_MAC_INIT_DONE" }; seq_puts(seq, "==> RSI STA DRIVER STATUS <==\n"); seq_puts(seq, "DRIVER_FSM_STATE: "); if (common->fsm_state <= FSM_MAC_INIT_DONE) seq_printf(seq, "%s", fsm_state[common->fsm_state]); seq_printf(seq, "(%d)\n\n", common->fsm_state); /* Mgmt TX Path Stats */ seq_printf(seq, "total_mgmt_pkt_send : %d\n", common->tx_stats.total_tx_pkt_send[MGMT_SOFT_Q]); seq_printf(seq, "total_mgmt_pkt_queued : %d\n", skb_queue_len(&common->tx_queue[MGMT_SOFT_Q])); seq_printf(seq, "total_mgmt_pkt_freed : %d\n", common->tx_stats.total_tx_pkt_freed[MGMT_SOFT_Q]); /* Data TX Path Stats */ seq_printf(seq, "total_data_vo_pkt_send: %8d\t", common->tx_stats.total_tx_pkt_send[VO_Q]); seq_printf(seq, "total_data_vo_pkt_queued: %8d\t", skb_queue_len(&common->tx_queue[VO_Q])); seq_printf(seq, "total_vo_pkt_freed: %8d\n", common->tx_stats.total_tx_pkt_freed[VO_Q]); seq_printf(seq, "total_data_vi_pkt_send: %8d\t", common->tx_stats.total_tx_pkt_send[VI_Q]); seq_printf(seq, "total_data_vi_pkt_queued: %8d\t", skb_queue_len(&common->tx_queue[VI_Q])); seq_printf(seq, "total_vi_pkt_freed: %8d\n", common->tx_stats.total_tx_pkt_freed[VI_Q]); seq_printf(seq, "total_data_be_pkt_send: %8d\t", common->tx_stats.total_tx_pkt_send[BE_Q]); seq_printf(seq, "total_data_be_pkt_queued: %8d\t", skb_queue_len(&common->tx_queue[BE_Q])); seq_printf(seq, "total_be_pkt_freed: %8d\n", common->tx_stats.total_tx_pkt_freed[BE_Q]); seq_printf(seq, "total_data_bk_pkt_send: %8d\t", common->tx_stats.total_tx_pkt_send[BK_Q]); seq_printf(seq, "total_data_bk_pkt_queued: %8d\t", skb_queue_len(&common->tx_queue[BK_Q])); seq_printf(seq, "total_bk_pkt_freed: %8d\n", common->tx_stats.total_tx_pkt_freed[BK_Q]); seq_puts(seq, "\n"); return 0; } /** * rsi_stats_open() - This funtion calls single open function of seq_file to * open file and read contents from it. * @inode: Pointer to the inode structure. * @file: Pointer to the file structure. * * Return: Pointer to the opened file status: 0 on success, ENOMEM on failure. */ static int rsi_stats_open(struct inode *inode, struct file *file) { return single_open(file, rsi_stats_read, inode->i_private); } /** * rsi_debug_zone_read() - This function display the currently enabled debug zones. * @seq: Pointer to the sequence file structure. * @data: Pointer to the data. * * Return: 0 on success, -1 on failure. */ static int rsi_debug_zone_read(struct seq_file *seq, void *data) { rsi_dbg(FSM_ZONE, "%x: rsi_enabled zone", rsi_zone_enabled); seq_printf(seq, "The zones available are %#x\n", rsi_zone_enabled); return 0; } /** * rsi_debug_read() - This funtion calls single open function of seq_file to * open file and read contents from it. * @inode: Pointer to the inode structure. * @file: Pointer to the file structure. * * Return: Pointer to the opened file status: 0 on success, ENOMEM on failure. */ static int rsi_debug_read(struct inode *inode, struct file *file) { return single_open(file, rsi_debug_zone_read, inode->i_private); } /** * rsi_debug_zone_write() - This function writes into hal queues as per user * requirement. * @filp: Pointer to the file structure. * @buff: Pointer to the character buffer. * @len: Length of the data to be written into buffer. * @data: Pointer to the data. * * Return: len: Number of bytes read. */ static ssize_t rsi_debug_zone_write(struct file *filp, const char __user *buff, size_t len, loff_t *data) { unsigned long dbg_zone; int ret; if (!len) return 0; ret = kstrtoul_from_user(buff, len, 16, &dbg_zone); if (ret) return ret; rsi_zone_enabled = dbg_zone; return len; } #define FOPS(fopen) { \ .owner = THIS_MODULE, \ .open = (fopen), \ .read = seq_read, \ .llseek = seq_lseek, \ } #define FOPS_RW(fopen, fwrite) { \ .owner = THIS_MODULE, \ .open = (fopen), \ .read = seq_read, \ .llseek = seq_lseek, \ .write = (fwrite), \ } static const struct rsi_dbg_files dev_debugfs_files[] = { {"version", 0644, FOPS(rsi_version_open),}, {"stats", 0644, FOPS(rsi_stats_open),}, {"debug_zone", 0666, FOPS_RW(rsi_debug_read, rsi_debug_zone_write),}, {"sdio_stats", 0644, FOPS(rsi_sdio_stats_open),}, }; /** * rsi_init_dbgfs() - This function initializes the dbgfs entry. * @adapter: Pointer to the adapter structure. * * Return: 0 on success, -1 on failure. */ int rsi_init_dbgfs(struct rsi_hw *adapter) { struct rsi_common *common = adapter->priv; struct rsi_debugfs *dev_dbgfs; char devdir[6]; int ii; const struct rsi_dbg_files *files; dev_dbgfs = kzalloc(sizeof(*dev_dbgfs), GFP_KERNEL); if (!dev_dbgfs) return -ENOMEM; adapter->dfsentry = dev_dbgfs; snprintf(devdir, sizeof(devdir), "%s", wiphy_name(adapter->hw->wiphy)); dev_dbgfs->subdir = debugfs_create_dir(devdir, NULL); if (!dev_dbgfs->subdir) { kfree(dev_dbgfs); return -ENOMEM; } for (ii = 0; ii < adapter->num_debugfs_entries; ii++) { files = &dev_debugfs_files[ii]; dev_dbgfs->rsi_files[ii] = debugfs_create_file(files->name, files->perms, dev_dbgfs->subdir, common, &files->fops); } return 0; } EXPORT_SYMBOL_GPL(rsi_init_dbgfs); /** * rsi_remove_dbgfs() - Removes the previously created dbgfs file entries * in the reverse order of creation. * @adapter: Pointer to the adapter structure. * * Return: None. */ void rsi_remove_dbgfs(struct rsi_hw *adapter) { struct rsi_debugfs *dev_dbgfs = adapter->dfsentry; if (!dev_dbgfs) return; debugfs_remove_recursive(dev_dbgfs->subdir); } EXPORT_SYMBOL_GPL(rsi_remove_dbgfs);