Created
April 9, 2017 02:19
-
-
Save zhangwei1984/36718ddd13e22c4227c9408a2277b2e7 to your computer and use it in GitHub Desktop.
case 1: firstly create VF with ixgbe, bind VF to dpdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two machines with 10G NIC directly connect each other | |
nn22 and nn23 | |
step 1: create one VF on nn23 | |
echo 1 > /sys/bus/pci/devices/0000:07:00.0/sriov_numvfs | |
Before bind VF to vfid-pci, try to ping this VF from nn22 (IP 12.0.0.22) | |
step 2: assign IP to this VF p2p1_0 12.0.0.23 | |
p2p1 Link encap:Ethernet HWaddr 90:e2:ba:4a:e8:08 | |
inet6 addr: fe80::92e2:baff:fe4a:e808/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:1847 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:111124 (111.1 KB) TX bytes:0 (0.0 B) | |
p2p1_0 Link encap:Ethernet HWaddr 2a:6b:c5:99:c1:e7 | |
inet addr:12.0.0.23 Bcast:12.255.255.255 Mask:255.0.0.0 | |
inet6 addr: fe80::286b:c5ff:fe99:c1e7/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:1836 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:1844 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:110160 (110.1 KB) TX bytes:77760 (77.7 KB) | |
From the tcpdump -i p2p1_0, it gave the reply. Also ifconfig counter increases. It seems that the arp reply should be sent out. | |
But nn22 does not receive the packets. ifconfig drop counter is 0. | |
If using ethtool checks the counter, tx counter is 0. | |
root@nimbnode23:/sys/bus/pci/devices/0000:07:00.0# ethtool -S p2p1_0 | |
NIC statistics: | |
rx_packets: 0 | |
tx_packets: 0 | |
rx_bytes: 0 | |
tx_bytes: 0 | |
tx_busy: 0 | |
tx_restart_queue: 0 | |
tx_timeout_count: 1 | |
multicast: 0 | |
rx_csum_offload_errors: 0 | |
rx_bp_poll_yield: 0 | |
rx_bp_cleaned: 0 | |
rx_bp_misses: 0 | |
tx_bp_napi_yield: 0 | |
tx_bp_cleaned: 0 | |
tx_bp_misses: 0 | |
why ifconfig and ethtool does not match each other. ifconfig shows tx increases. | |
but ethtool shows tx is 0. p2p1 tx is also 0 from ethtool stats. | |
Do you have any idea how to debug this problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment