[dpdk-users] Enabling RSS with FM10K and testpmd

Anthony Hart ahart at domainhart.com
Fri Dec 23 13:14:24 CET 2016


I think this question has been asked before, I’m trying to use RSS on a FM10K under testpmd.  Although testpmd creates the 2 queues on the port I’m still seeing all the traffic going to a single queue (the incoming traffic has a mix of DIP and SIP addresses).

Has anyone had any luck with this?

DPDK version 16.11

# testpmd -c 0x007e -n 4 -- -i --txq 2 --rxq 2 --nb-core 4 --numa --port-topology=chained

testpmd> start
io packet forwarding - ports=2 - cores=4 - streams=4 - NUMA support enabled, MP over anonymous pages disabled
Logical Core 2 (socket 0) forwards packets on 1 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
Logical Core 3 (socket 0) forwards packets on 1 streams:
  RX P=0/Q=1 (socket 0) -> TX P=1/Q=1 (socket 0) peer=02:00:00:00:00:01
Logical Core 4 (socket 0) forwards packets on 1 streams:
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
Logical Core 5 (socket 0) forwards packets on 1 streams:
  RX P=1/Q=1 (socket 0) -> TX P=0/Q=1 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding - CRC stripping disabled - packets/burst=32
  nb forwarding cores=4 - nb forwarding ports=2
  RX queues=2 - RX desc=128 - RX free threshold=32
  RX threshold registers: pthresh=8 hthresh=8 wthresh=0
  TX queues=2 - TX desc=512 - TX free threshold=32
  TX threshold registers: pthresh=32 hthresh=0 wthresh=0
  TX RS bit threshold=32 - TXQ flags=0xf01

testpmd> show port xstats 0
###### NIC extended statistics for port 0
rx_good_packets: 86212098
tx_good_packets: 0
rx_good_bytes: 5172726600
tx_good_bytes: 0
rx_errors: 0
tx_errors: 0
rx_mbuf_allocation_errors: 0
rx_q0packets: 86212098
rx_q0bytes: 5172726600
rx_q0errors: 0
rx_q1packets: 0
rx_q1bytes: 0
rx_q1errors: 0
tx_q0packets: 0
tx_q0bytes: 0
tx_q1packets: 0
tx_q1bytes: 0
completion_timeout_count: 0
unsupported_requests_count: 0
completer_abort_count: 0
unsupported_message_count: 0
checksum_error_count: 0
vlan_dropped: 0
loopback_dropped: 0
rx_mbuf_allocation_errors: 101
rx_q0_packets: 23758534
rx_q0_bytes: 1425512880
rx_q0_dropped: 101
tx_q0_packets: 0
tx_q0_bytes: 0
rx_q1_packets: 0
rx_q1_bytes: 0
rx_q1_dropped: 0
tx_q1_packets: 0
tx_q1_bytes: 0


I’m using ‘redirect’ ACLs to forward traffic between ports in the FM10K

tp("create acl 0");
tp("create acl-rule 0 0");
tp("add acl-rule condition 0 0 src-port 0");
tp("add acl-rule action 0 0 redirect 1");
tp("add acl-rule action 0 0 count”);


More information about the users mailing list