Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can match-interface support VF's configuration and statistics? #1

Open
zhuchuyi opened this issue Sep 27, 2016 · 0 comments
Open

Can match-interface support VF's configuration and statistics? #1

zhuchuyi opened this issue Sep 27, 2016 · 0 comments

Comments

@zhuchuyi
Copy link

I am testing Intel FM10000 with match-interface.
I setup a VF interface enp133s0f1 (lport 50000) on a fm10k host interface enp133s0 (port 3), then I sent packets with dst mac as mac of enp133s0f1 from another server.
If the packet is vlan untagged, it can be captured on enp133s0f1 with tcpdump.
If the packet is vlan tagged (vlan=100), it can’t be captured on enp133s0f1, but it can be captured on enp133s0.
I have set port 3 vlan as below:

[root@test09 ~]# match get_ports min 3 max 3
port 3:
state: up
speed: 40G
max_frame_size: 15360
type:
loopback: disabled
learning: disabled
update_dscp: enabled
update_ttl: enabled
mcast_flooding: enabled
update_dmac: enabled
update_smac: disabled
update_vlan: enabled
vlan:
default vlan: 1
default priority: 0
drop tagged: disabled
drop untagged: disabled
vlan membership: 1 100
stats:
rx_packets 71
rx_bytes 11894
rx_unicast_packets 0
rx_multicast_packets 48
rx_broadcast_packets 23
rx_unicast_bytes 0
rx_multicast_bytes 3936
rx_broadcast_bytes 7958
tx_packets 54
tx_bytes 16580
tx_unicast_packets 1
tx_multicast_packets 7
tx_broadcast_packets 46
tx_unicast_bytes 102
tx_multicast_bytes 562
tx_broadcast_bytes 15916
[root@test09 ~]#

Then I found the VF vlan membership is not set:

[root@test09 ~]# match phys_port_lookup lport 50000
port 50000:
state:
speed:
phys_id: 3
type:
glort: 0x4000
vlan:
default vlan: 0
default priority: 0
vlan membership:
stats:
rx_packets 0
rx_bytes 0
rx_unicast_packets 0
rx_multicast_packets 0
rx_broadcast_packets 0
rx_unicast_bytes 0
rx_multicast_bytes 0
rx_broadcast_bytes 0
tx_packets 0
tx_bytes 0
tx_unicast_packets 0
tx_multicast_packets 0
tx_broadcast_packets 0
tx_unicast_bytes 0
tx_multicast_bytes 0
tx_broadcast_bytes 0
[root@test09 ~]#

I doubt that is why vlan tagged packets can't reach the VF, but it seems that match-interface doesn't support VF port configuration:

[root@test09 ~]# match set_port port 50000
Warning: received cmd without valid attribute expected 10
Error: match_nl_get_ports failed

what's more, there is no way to check the VF port statistics with match-interface.

Can anybody help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant