|WARNING| [v1,1/1] net/ixgbe: fix PTP packet detection
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Fri Nov 20 13:33:20 CET 2026
Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/173062
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-20
**Patch 1/1: net/ixgbe: fix PTP packet detection**
**Warning: user filters can now claim the 1588 EtherType, which can re-break the PTP detection this patch fixes**
The 1588 entry is no longer recorded in the shared ETQF table, so `ixgbe_ethertype_table_add()` no longer rejects a user EtherType filter for `RTE_ETHER_TYPE_1588`.
Before this patch, the timesync reservation went through the table's dedup check. That path is removed here:
```
- idx = ixgbe_ethertype_table_add(&filter_info->ethertype_table,
- RTE_ETHER_TYPE_1588, etqf, 0);
```
It is replaced by a direct hardware write that the table does not know about:
```
+ ixgbe_ethertype_filter_program(hw, IXGBE_ETQF_FILTER_TIMESYNC,
+ RTE_ETHER_TYPE_1588 | IXGBE_ETQF_FILTER_EN | IXGBE_ETQF_1588, 0);
```
As a result, an application can install an EtherType filter (or rte_flow rule) for 0x88F7 into one of slots 0-6 while timesync is enabled. The `-EEXIST` check in the add loop only sees table entries:
```
if (table->entries[i].used) {
if (table->entries[i].ethertype == ethertype)
return -EEXIST;
```
Two ETQF entries would then match the same EtherType. If the hardware reports the lower-indexed match in the Rx descriptor, the reported index is not `IXGBE_ETQF_FILTER_TIMESYNC`. In that case `ip_pkt_etqf_map[]` yields 0 and `RTE_MBUF_F_RX_IEEE1588_PTP` is not set, which is the symptom this patch is fixing.
Suggested fix: explicitly reject `RTE_ETHER_TYPE_1588` in `ixgbe_ethertype_table_add()`, or in the ethertype filter add/validate paths, since that EtherType is now owned by the reserved slot.
Review-Result: WARNING
More information about the test-report
mailing list