A Discrete-Event Network Simulator
API
dpdk-net-device-helper.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2020 NITK Surathkal
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Authors: Harsh Patel <thadodaharsh10@gmail.com>
19 * Hrishikesh Hiraskar <hrishihiraskar@gmail.com>
20 */
21
22#ifndef DPDK_NET_DEVICE_HELPER_H
23#define DPDK_NET_DEVICE_HELPER_H
24
25#include "ns3/emu-fd-net-device-helper.h"
26
27namespace ns3 {
28
36{
37public:
45
47 {}
48
54 void SetLCoreList (std::string lCoreList);
55
61 void SetPmdLibrary (std::string pmdLibrary);
62
68 void SetDpdkDriver (std::string dpdkDriver);
69
70protected:
79
83 std::string m_lCoreList;
84
88 std::string m_pmdLibrary;
89
93 std::string m_dpdkDriver;
94
95};
96
97} // namespace ns3
98
99#endif /* DPDK_NET_DEVICE_HELPER_H */
build a DpdkNetDevice object attached to a physical network interface
void SetPmdLibrary(std::string pmdLibrary)
Sets PMD Library to be used for the NIC.
std::string m_lCoreList
Logical cores to use.
void SetDpdkDriver(std::string dpdkDriver)
Sets DPDK Driver to bind NIC to.
std::string m_dpdkDriver
DPDK Driver to bind NIC to.
std::string m_pmdLibrary
PMD Library to be used for NIC.
void SetLCoreList(std::string lCoreList)
Sets list of logical cores to use.
Ptr< NetDevice > InstallPriv(Ptr< Node > node) const
This method creates an ns3::FdNetDevice attached to a physical network interface.
DpdkNetDeviceHelper()
Construct a DpdkNetDeviceHelper and initialize DPDK EAL.
build a set of FdNetDevice objects attached to a physical network interface
Every class exported by the ns3 library is enclosed in the ns3 namespace.