54aad2f231
The eBPF classifier (section "cls_q" in tap_bpf_program.c) is tracing marked packets in which skb->cb[1] contains an RSS queue number, and redirects those packets to the matched queue. It is expected that skb->cb[1] has been previously set with a valid RSS queue number during an eBPF action (section "l3_l4" in tap_bpf_program.c). However, for non-RSS flows, skb->cb[1] may contain a random unset value, which could falsely be interpreted as a valid RSS queue. To avoid this potential error, tap_bpf_program.c has been updated as follows: 1. After calculating the RSS queue number, it is added a unique offset in order to uniquely identify it as a valid RSS queue number. 2. After matching an RSS queue to a packet, skb->cb[1] is set to 0. Fixes: |
||
---|---|---|
.. | ||
Makefile | ||
rte_eth_tap.c | ||
rte_eth_tap.h | ||
rte_pmd_tap_version.map | ||
tap_bpf_api.c | ||
tap_bpf_insns.h | ||
tap_bpf_program.c | ||
tap_bpf.h | ||
tap_flow.c | ||
tap_flow.h | ||
tap_intr.c | ||
tap_netlink.c | ||
tap_netlink.h | ||
tap_rss.h | ||
tap_tcmsgs.c | ||
tap_tcmsgs.h |