nic

Programmatically check whether my machine has internet access or not

為{幸葍}努か 提交于 2019-12-18 05:44:15
问题 How can I programmatically check whether my machine has internet access or not using C/C++, is it just a matter of pinging an IP? How does NIC do it ? I mean something like: I am using Windows 7. 回答1: If you work on Windows, just try this #include <iostream> #include <windows.h> #include <wininet.h> using namespace std; int main(){ if(InternetCheckConnection(L"http://www.google.com",FLAG_ICC_FORCE_CONNECTION,0)) { cout << "connected to internet"; } return 0; } 回答2: There is nothing of that

How to fix “no valid ports” issue in dpdk-18.02 while building the application?

左心房为你撑大大i 提交于 2019-12-11 17:56:57
问题 Building an application using dpdk-v18.02 and getting an error as "no valid ports". I tried dpdk-v19.02 and it's giving the same error. This is the error: EAL: Detected 40 lcore(s) EAL: Multi-process socket /var/run/.rte_unix EAL: Probing VFIO support... EAL: PCI device 0000:04:00.0 on NUMA socket 0 EAL: probe driver: 10ee:9038 xnic EAL: Requested device 0000:04:00.0 cannot be used EAL: Error - exiting with code: 1 Cause: Error: no valid ports The port is already bound to the driver: dpdk

.NET SqlConnection NIC usage

妖精的绣舞 提交于 2019-12-10 11:49:09
问题 Having a computer with multiple NICs, I need to specify somehow the one to use for the connection to SQL Server. 回答1: Following on from @pzycoman, SqlConnection (and SQL OLEDB/SQL Server ODBC) has no explicit connection string semantic to express the bound NIC other than to specify the destination server host address (which in turn triggers the route metrics discussion). Splitting out services or applications onto different subnets can work - but equally can also generate the utilization

Does DPDK require more than 1 NIC?

别等时光非礼了梦想. 提交于 2019-12-09 23:43:18
问题 I'm totally new to DPDK and have some weird questions that I cannot figure out by myself. Does DPDK require more than 1 NIC on my physical device? I saw some examples (l2fwd, l3fwd) that require 2 NICs, one is used for receiving packets and another one is used for transmitting packets. Since DPDK takes control of NICs, could I still normally access the Internet if I bind my only NIC to DPDK? I mean doing some normal stuff like surfing the web with Firefox. After binding the NICs, only DPDK

What does the meaning of “[fixed]” string in output of ethtool command

会有一股神秘感。 提交于 2019-12-06 20:33:47
问题 I run ethtool to query the offload features of a NIC using "ethtool -k" command, and the output is something as follows: ethtool -k eth0 scatter-gather: on tx-scatter-gather: on tx-scatter-gather-fraglist: off **[fixed]** I am wondering what the meaning of "[fixed]" is. 回答1: Those are the parameters that cant be changed, they are "fixed". Here is an example. Let's take this output of ethtool : large-receive-offload: off [fixed] rx-vlan-offload: on tx-vlan-offload: on If I want to change rx

While using DPDK application, rte_eth_dev_count is returning 0 always

主宰稳场 提交于 2019-12-06 11:25:26
I have configured NIC cards as below:- [root@localhost ethtool]# ../../tools/dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:81:00.0 'NetXtreme BCM5722 Gigabit Ethernet PCI Express' drv=igb_uio unused=tg3 Network devices using kernel driver =================================== 0000:02:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f0 drv=ixgbe unused=igb_uio 0000:02:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f1 drv=ixgbe unused=igb_uio 0000:04:00.0 'I350 Gigabit Network Connection' if=enp4s0f0

How to give highest priority to ethernet interrupt in linux

自古美人都是妖i 提交于 2019-12-05 01:24:01
问题 I listed all interrupts with this: cat /proc/interruts it gives this: CPU0 CPU1 CPU2 CPU3 0: 126 0 0 0 IO-APIC-edge timer 1: 941 0 0 0 IO-APIC-edge keyboard ... (etc.) 19: 941 0 0 0 IO-APIC-fasteoi eth0 ... (etc.) Does the first column in this table give priority level of interrupts? I just want to learn priority levels, because I want to increase my NIC's interrupt priority level for better network performance. I think, first two interrupts cannot be changed (I guess due to intel x86

What does the meaning of “[fixed]” string in output of ethtool command

…衆ロ難τιáo~ 提交于 2019-12-05 00:13:46
I run ethtool to query the offload features of a NIC using "ethtool -k" command, and the output is something as follows: ethtool -k eth0 scatter-gather: on tx-scatter-gather: on tx-scatter-gather-fraglist: off **[fixed]** I am wondering what the meaning of "[fixed]" is. Those are the parameters that cant be changed, they are "fixed". Here is an example. Let's take this output of ethtool : large-receive-offload: off [fixed] rx-vlan-offload: on tx-vlan-offload: on If I want to change rx-vlan-offload I would do : $ sudo ethtool -K eth0 rxvlan off Actual changes: tcp-segmentation-offload: on tx

Does DPDK require more than 1 NIC?

淺唱寂寞╮ 提交于 2019-12-04 20:09:11
I'm totally new to DPDK and have some weird questions that I cannot figure out by myself. Does DPDK require more than 1 NIC on my physical device? I saw some examples (l2fwd, l3fwd) that require 2 NICs, one is used for receiving packets and another one is used for transmitting packets. Since DPDK takes control of NICs, could I still normally access the Internet if I bind my only NIC to DPDK? I mean doing some normal stuff like surfing the web with Firefox. After binding the NICs, only DPDK applications can access those NICs, or is there any way that normal applications can access them? I have

Programmatically check whether my machine has internet access or not

风格不统一 提交于 2019-11-29 09:24:25
How can I programmatically check whether my machine has internet access or not using C/C++, is it just a matter of pinging an IP? How does NIC do it ? I mean something like: I am using Windows 7. Nayana Adassuriya If you work on Windows, just try this #include <iostream> #include <windows.h> #include <wininet.h> using namespace std; int main(){ if(InternetCheckConnection(L"http://www.google.com",FLAG_ICC_FORCE_CONNECTION,0)) { cout << "connected to internet"; } return 0; } Kiran There is nothing of that sort I think, but you can try this: The easiest way is to try to connect to a known outside