VPP/EC2 instance with SRIOV

From fd.io
< VPP
Revision as of 12:49, 15 November 2017 by Sunshout (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

VPP on an EC2 instance with SR-IOV support

AWS EC2 network consists of VLAN. So DPDK should support vlan offload especially "strip on"

HowTo

Configuration

This is recommened config for dpdk section at /etc/vpp/startup.conf


 dpdk {
   dev default {
       num-rx-queues 2
       num-tx-queues 2
       vlan-strip-offload on
    }
 }


Running the example

The DPDK interface should configured strip on of vlan offload

 DBGvpp# show hardware-interfaces  detail
             Name                Idx   Link  Hardware
 VirtualFunctionEthernet0/4/0       1     up   VirtualFunctionEthernet0/4/0
 Ethernet address 02:f8:f6:ae:24:88
 Intel 82599 VF
   carrier up full duplex speed 10000 mtu 9216
   pci id:            device 8086:10ed subsystem 0000:0000
   pci address:       0000:00:04.00
   max rx packet len: 9728
   max num of queues: rx 2 tx 2
   promiscuous:       unicast off all-multicast on
   vlan offload:      strip on filter off qinq off
   rx offload caps:   vlan-strip ipv4-cksum udp-cksum tcp-cksum
   tx offload caps:   vlan-insert ipv4-cksum udp-cksum tcp-cksum sctp-cksum
                      tcp-tso
   rss active:        ipv4-tcp ipv6-tcp-ex ipv6-tcp ipv6-udp ipv6-ex
   rss supported:     none
   rx queues 2, rx desc 1024, tx queues 1, tx desc 1024
   cpu socket 0
 
   tx frames ok                                         719
   tx bytes ok                                        72021
   rx frames ok                                         723
   rx bytes ok                                        72401
   extended stats:
     rx good packets                                    723
     tx good packets                                    719
     rx good bytes                                    72401
     tx good bytes                                    72021
     rx errors                                            0
     tx errors                                            0
     rx mbuf allocation errors                            0
     rx q0packets                                         0
     rx q0bytes                                           0
     rx q0errors                                          0
     rx q1packets                                         0
     rx q1bytes                                           0
     rx q1errors                                          0
     tx q0packets                                         0
     tx q0bytes                                           0
     rx multicast packets                                 0