A Discrete-Event Network Simulator
API
dpdk-net-device-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 NITK Surathkal
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Authors: Harsh Patel <thadodaharsh10@gmail.com>
18 * Hrishikesh Hiraskar <hrishihiraskar@gmail.com>
19 */
20
21#ifndef DPDK_NET_DEVICE_HELPER_H
22#define DPDK_NET_DEVICE_HELPER_H
23
24#include "ns3/emu-fd-net-device-helper.h"
25
26namespace ns3
27{
28
36{
37 public:
45
47 {
48 }
49
55 void SetLCoreList(std::string lCoreList);
56
62 void SetPmdLibrary(std::string pmdLibrary);
63
69 void SetDpdkDriver(std::string dpdkDriver);
70
71 protected:
80
84 std::string m_lCoreList;
85
89 std::string m_pmdLibrary;
90
94 std::string m_dpdkDriver;
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
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Every class exported by the ns3 library is enclosed in the ns3 namespace.